mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 04:33:45 +03:00
[ new ] minimal value in a SortedSet
This commit is contained in:
parent
f2dfeb39cd
commit
5f7ad73a35
@ -82,3 +82,7 @@ singleton k = insert k empty
|
||||
export
|
||||
toSortedMap : SortedSet k -> SortedMap k ()
|
||||
toSortedMap (SetWrapper m) = m
|
||||
|
||||
export
|
||||
min : SortedSet k -> Maybe k
|
||||
min (SetWrapper m) = fst <$> min m
|
||||
|
Loading…
Reference in New Issue
Block a user