mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
📝 liveInsert.
This commit is contained in:
parent
2e65116f11
commit
dae3e8caa3
@ -18,6 +18,7 @@ newtype Live l v = Live { unLive :: Set (Address l v) }
|
||||
liveSingleton :: Address l v -> Live l v
|
||||
liveSingleton = Live . Set.singleton
|
||||
|
||||
-- | Insert an address into a 'Live' set.
|
||||
liveInsert :: Ord l => Address l v -> Live l v -> Live l v
|
||||
liveInsert addr = Live . Set.insert addr . unLive
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user