Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make StrMap.size return an integer instead of a float
  • Loading branch information
no-longer-on-githu-b committed Feb 15, 2017
commit b91dd5c0643b081aa58f98d8f7061e3609a9100c
2 changes: 1 addition & 1 deletion src/Data/StrMap.purs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ isEmpty :: forall a. StrMap a -> Boolean
isEmpty = all (\_ _ -> false)

-- | Calculate the number of key/value pairs in a map
foreign import size :: forall a. StrMap a -> Number
foreign import size :: forall a. StrMap a -> Int

-- | Create a map with one key/value pair
singleton :: forall a. String -> a -> StrMap a
Expand Down