Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit c5cdcfe

Browse files
committed
add 'size' to Data.Map
1 parent 27991cb commit c5cdcfe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Data/Map.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,6 @@ unions = foldl union empty
237237

238238
map :: forall k a b. (a -> b) -> Map k a -> Map k b
239239
map = P.(<$>)
240+
241+
size :: forall k v. Map k v -> Number
242+
size = A.length P.<<< values

0 commit comments

Comments
 (0)