| Safe Haskell | None |
|---|
Language.Sunroof.JS.Map
Description
JSMap provides an abstract and more type-safe access to maps
in JavaScript. It is a wrapper around the dictionary each object
in JavaScript is.
Documentation
JSMap abstraction. The first type parameter gives
the type of keys used by the name and the second gives
the type of values.
Instances
| (SunroofKey k, Sunroof a) => Show (JSMap k a) | |
| (SunroofKey k, Sunroof a) => IfB (JSMap k a) | |
| (SunroofKey k, Sunroof a) => Sunroof (JSMap k a) |
insert :: (SunroofKey k, Sunroof a) => k -> a -> JSMap k a -> JS t ()Source
insert k x inserts an element x associated with the given
key k into a map.