Module
HTTPure.Lookup
- Package
- purescript-httpure
- Repository
- cprussin/purescript-httpure
#Lookup Source
class Lookup a v k whereTypes that implement the Lookup class can be looked up by some key to
retrieve some value. For instance, you could have an implementation for
String (Maybe String) Int where lookup string index returns Just the
character in string at index, or Nothing if index is out of bounds.
Members
lookup :: a -> k -> v
A default instance of Lookup for an Array of some type of Monoid. Note that this is different from
!!defined inData.Arrayin that it does not return a Maybe. If the index is out of bounds, the return value is mempty.