Search results

map :: forall f a b. Functor f => (a -> b) -> f a -> f b
P purescript-prelude M Data.Functor

Map k v represents maps from keys of type k to values of type v.

P purescript-ordered-collections M Data.Map.Internal
map :: forall a b. Ord b => (a -> b) -> Set a -> Set b

Maps over the values in a set.

This operation is not structure-preserving for sets, so is not a valid Functor. An example case: mapping const x over a set with n > 0 elements will result in a set with one element.

P purescript-ordered-collections M Data.Set
map :: forall a b. Ord b => (a -> b) -> NonEmptySet a -> NonEmptySet b

Maps over the values in a set.

This operation is not structure-preserving for sets, so is not a valid Functor. An example case: mapping const x over a set with n > 0 elements will result in a set with one element.

P purescript-ordered-collections M Data.Set.NonEmpty
map :: forall a b m r. Monad m => (a -> b) -> Pipe a b m r

Apply a function to all values flowing downstream

P purescript-pipes M Pipes.Prelude
map :: Array Props -> Array ReactElement -> ReactElement
P purescript-react M React.DOM
map :: Array Props -> Array ReactElement -> ReactElement
P purescript-react M React.DOM.Dynamic
map :: forall w i. Node HTMLmap w i
P purescript-halogen M Halogen.HTML.Elements
map :: forall e. Markup e -> Markup e
P purescript-smolder M Text.Smolder.HTML
map :: forall f a b x y. IxFunctor f => (a -> b) -> f x y a -> f x y b
P purescript-indexed-monad M Control.Monad.Indexed.Qualified
map :: forall a b. Hashable b => (a -> b) -> HashSet a -> HashSet b

Construct a new set by applying a function to each element of an input set.

If distinct inputs map to the same output, this changes the cardinality of the set, therefore hash set is not a Functor. Also, the order in which elements appear in the new set is entirely dependent on the hash function for type b.

P purescript-unordered-collections M Data.HashSet
map :: Selector
P purescript-css M CSS.Elements
map :: forall a t. TypedArray a t => (t -> t) -> ArrayView a -> ArrayView a

Maps a new value over the typed array, creating a new ArrayBuffer and typed array as well.

P purescript-arraybuffer M Data.ArrayBuffer.Typed
map :: forall attrs attrs_. Union attrs attrs_ Props_map => Record attrs -> JSX
P purescript-react-basic-dom M React.Basic.DOM.Generated
map :: forall attrsNoChildren attrsWithDuplicate attrs attrs_ jsx. Union attrs attrs_ Props_map => ToJSX jsx => Union (children :: Array JSX) attrsNoChildren attrsWithDuplicate => Nub (children :: Array JSX | attrsNoChildren) attrs => Record attrsNoChildren -> jsx -> JSX
P purescript-react-basic-dom M React.Basic.DOM.Simplified.Generated
map :: (Octet -> Octet) -> ByteString -> ByteString

Θ(n) Transform the bytes in the byte string.

P purescript-bytestrings M Data.ByteString
map :: ElemName

Defines an image map

P purescript-chameleon M Chameleon.HTML.ElemNames
map :: forall html a. Html html => Array (Prop a) -> Array (html a) -> html a

Defines an image map

P purescript-chameleon M Chameleon.HTML.Elements
map :: forall html a. Html html => Array (Prop a) -> Array (Key /\ (html a)) -> html a

Defines an image map

P purescript-chameleon M Chameleon.HTML.KeyedElements
map :: forall e a. (ReactElement -> a) -> ReactWrapper -> Eff (enzyme :: ENZYME | e) (Array a)
P purescript-enzyme M Enzyme.ReactWrapper
map :: forall e a. (ReactElement -> a) -> ShallowWrapper -> Eff (enzyme :: ENZYME | e) (Array a)
P purescript-enzyme M Enzyme.ShallowWrapper
map :: forall b a. Ord b => (a -> b) -> OSet a -> OSet b

Maps over the values in a set.

This operation is not structure-preserving for sets, so is not a valid Functor. An example case: mapping const x over a set with n > 0 elements will result in a set with one element.

P purescript-ordered-set M Data.Set.Ordered
map :: forall a b. (a -> b) -> Seq a -> Seq b

O(n). Apply a function to every element within a sequence. Note that this function is performed lazily — the actual call is almost instantaneous, regardless of the length of the sequence, because the function is not applied to all elements immediately. The eventual running time (assuming all elements are later requested) is O(n), though.

P purescript-sequences M Data.Sequence
map :: forall f b a. ((a -> b) -> f a -> f b) -> (a -> b) -> NonEmpty f a -> NonEmpty f b
P purescript-probability M Data.NonEmpty.Extras
map :: forall p b a. Ord b => Semiring p => (a -> b) -> Dist p a -> Dist p b
P purescript-probability M Math.Probability
map :: forall c f v1 v0. HasMap c f => ObjectOf c v0 => ObjectOf c v1 => ObjectOf c (f v0) => ObjectOf c (f v1) => c v0 v1 -> c (f v0) (f v1)
P purescript-subcategory M Control.Subcategory.Endofunctor.HasMap
map :: forall c f v1 v0. HasMap c f => ObjectOf c v0 => ObjectOf c v1 => c v0 v1 -> f v0 -> f v1
P purescript-subcategory M Control.Subcategory.Functor.HasMap

Maps a type constructor to a List'.

P purescript-typelevel-lists M Type.Data.List
map :: forall f xs ys fproxy kproxy lproxy. Map f xs ys => fproxy f -> kproxy xs -> lproxy ys
P purescript-typelevel-lists M Type.Data.List
map :: forall b a. NotJSPromise b => (a -> b) -> PromiseSpec a -> PromiseSpec b

map the value in a promise spec

P purescript-bonjiri M Bonjiri
map :: forall a b. Ord a => JsonCodec a -> JsonCodec b -> JsonCodec (Map a b)

A codec for Map values.

Encodes as an array of two-element key/value arrays in JSON.

P purescript-codec-argonaut M Data.Codec.Argonaut.Common
map :: forall lock payload. Event (Attribute Map_) -> Array (Domable lock payload) -> Domable lock payload
P purescript-deku M Deku.DOM.Elt.Map
map :: forall p q a b. Dissect p q => (a -> b) -> p a -> p b

A tail-recursive map operation, implemented in terms of Dissect.

P purescript-dissect M Dissect.Class
map :: forall t. Corecursive t EJsonF => Map t t -> t
P purescript-ejson M Data.Json.Extended
Map :: forall a. (EJsonMap a) -> EJsonF a
P purescript-ejson M Data.Json.Extended.Signature.Core
Map :: EJsonType
P purescript-ejson M Data.Json.Extended.Type
map :: forall db da b a. Patch a da => Patch b db => (Jet a -> Jet b) -> Jet (IArray a) -> Jet (IArray b)

Modify each array element by applying the specified function.

P purescript-incremental-functions M Data.Incremental.Array
map :: forall b a. (a -> b) -> Jet (Atomic a) -> Jet (Atomic b)

Change an Atomic value using a regular function.

P purescript-incremental-functions M Data.Incremental.Eq
map :: forall db b da a k. Ord k => Patch a da => Patch b db => (Jet a -> Jet b) -> Jet (IMap k a) -> Jet (IMap k b)

Update every key by applying a function.

P purescript-incremental-functions M Data.Incremental.Map
map :: forall m. Array (Prop m) -> Component m -> Component m
P purescript-jelly M Jelly.Element
P purescript-js-maps M JS.Map.Internal
Map :: forall k v. (Map String (Tuple k v)) -> Map k v
P purescript-js-maps M JS.Map.Internal
P purescript-js-maps M JS.Map.Primitive.Internal

A map object (http://leafletjs.com/reference-1.0.3.html#map-example)

P purescript-leaflet-tdammers M Leaflet.Map
map :: forall e. String -> LatLng -> Zoom -> Eff (leaflet :: LEAFLET | e) Map

map domID latLng zoom creates a new map object centered at latLng, at zoom level zoom, and attaches it to the DOM element with ID domID.

P purescript-leaflet-tdammers M Leaflet.Map
map :: forall b a. Hashable b => (a -> b) -> MultiSet a -> MultiSet b
P purescript-multiset-hashed M Data.HashSet.Multi
map :: forall f b a. IsoFunctor f => Iso a b -> f a -> f b
P purescript-partial-isomorphisms M Control.Isomorphism.Partial
map :: forall r2 r1 r0 p l1 l0 g f. RMap p f g l0 r0 l1 r1 r2 => RowToList r0 l0 => RowToList r1 l1 => g r0 -> p (f r1) (f r2)
P purescript-struct M Data.Struct.Map.Map
map :: forall barbie f g. Functor barbie => (forall a. f a -> g a) -> barbie f -> barbie g
P purescript-barbies M Data.Barbie
map :: forall a b. (Mapper a) -> Node a -> Node b
P purescript-bf-gun M Gun
Map :: forall a. (Mapper a) -> QueryOperator a
P purescript-bf-gun M Gun.Query
map :: forall a. Mapper a -> Query a -> Query a
P purescript-bf-gun M Gun.Query
map :: forall a b. Ord a => Codec a -> Codec b -> Codec (Map a b)

A codec for Map values.

Encodes as an array of two-element key/value arrays in JSON.

P purescript-codec-json M Data.Codec.JSON.Common
map :: ClassName
P purescript-css-frameworks M CSSFrameworks.Foundation
map :: forall (props :: Row Type) (content :: Type). ReactChildren content => IsSubsetOf props (_data :: Object String, about :: String, acceptCharset :: String, accessKey :: String, allowFullScreen :: Boolean, allowTransparency :: Boolean, "aria-activedescendant" :: String, "aria-atomic" :: String, "aria-autocomplete" :: String, "aria-busy" :: String, "aria-checked" :: String, "aria-colcount" :: String, "aria-colindex" :: String, "aria-colspan" :: String, "aria-controls" :: String, "aria-current" :: String, "aria-describedby" :: String, "aria-details" :: String, "aria-disabled" :: String, "aria-dropeffect" :: String, "aria-errormessage" :: String, "aria-expanded" :: String, "aria-flowto" :: String, "aria-grabbed" :: String, "aria-haspopup" :: String, "aria-hidden" :: String, "aria-invalid" :: String, "aria-keyshortcuts" :: String, "aria-label" :: String, "aria-labelledby" :: String, "aria-level" :: String, "aria-live" :: String, "aria-modal" :: String, "aria-multiline" :: String, "aria-multiselectable" :: String, "aria-orientation" :: String, "aria-owns" :: String, "aria-placeholder" :: String, "aria-posinset" :: String, "aria-pressed" :: String, "aria-readonly" :: String, "aria-relevant" :: String, "aria-required" :: String, "aria-roledescription" :: String, "aria-rowcount" :: String, "aria-rowindex" :: String, "aria-rowspan" :: String, "aria-selected" :: String, "aria-setsize" :: String, "aria-sort" :: String, "aria-valuemax" :: String, "aria-valuemin" :: String, "aria-valuenow" :: String, "aria-valuetext" :: String, autoComplete :: Boolean, autoFocus :: Boolean, autoPlay :: Boolean, capture :: Boolean, cellPadding :: String, cellSpacing :: String, charSet :: String, classID :: String, className :: String, colSpan :: Int, contentEditable :: Boolean, contextMenu :: String, crossOrigin :: String, dangerouslySetInnerHTML :: { __html :: String }, datatype :: String, dateTime :: String, dir :: String, draggable :: Boolean, encType :: String, formAction :: String, formEncType :: String, formMethod :: String, formNoValidate :: Boolean, formTarget :: String, frameBorder :: String, hidden :: Boolean, hrefLang :: String, htmlFor :: String, httpEquiv :: String, icon :: String, id :: String, inlist :: String, inputMode :: String, is :: String, itemID :: String, itemProp :: String, itemRef :: String, itemScope :: Boolean, itemType :: String, key :: String, keyParams :: String, keyType :: String, lang :: String, marginHeight :: String, marginWidth :: String, maxLength :: Int, mediaGroup :: String, minLength :: Int, name :: String, noValidate :: Boolean, onBlur :: EffectFn1 SyntheticEvent Unit, onClick :: EffectFn1 SyntheticEvent Unit, onDoubleClick :: EffectFn1 SyntheticEvent Unit, onFocus :: EffectFn1 SyntheticEvent Unit, onKeyDown :: EffectFn1 KeyboardEvent Unit, onKeyPress :: EffectFn1 KeyboardEvent Unit, onKeyUp :: EffectFn1 KeyboardEvent Unit, onMouseDown :: EffectFn1 MouseEvent Unit, onMouseEnter :: EffectFn1 MouseEvent Unit, onMouseLeave :: EffectFn1 MouseEvent Unit, onMouseMove :: EffectFn1 MouseEvent Unit, onMouseOut :: EffectFn1 MouseEvent Unit, onMouseOver :: EffectFn1 MouseEvent Unit, onMouseUp :: EffectFn1 MouseEvent Unit, onScroll :: EffectFn1 SyntheticEvent Unit, onTouchCancel :: EffectFn1 TouchEvent Unit, onTouchEnd :: EffectFn1 TouchEvent Unit, onTouchMove :: EffectFn1 TouchEvent Unit, onTouchStart :: EffectFn1 TouchEvent Unit, prefix :: String, property :: String, radioGroup :: String, readOnly :: Boolean, ref :: Ref HTMLMapElement, resource :: String, role :: String, role :: String, rowSpan :: Int, scoped :: Boolean, seamless :: Boolean, security :: String, spellCheck :: Boolean, srcDoc :: ReactElement, srcLang :: String, srcSet :: String, style :: CSS, suppressContentEditableWarning :: Boolean, tabIndex :: Int, title :: String, typeof :: String, unselectable :: Boolean, useMap :: String, vocab :: String, wmode :: String) => ValidReactProps (Record props) => Record props -> content -> ReactElement
P purescript-elmish-html M Elmish.HTML.Generated
map :: forall (content :: Type). ReactChildren content => String -> content -> ReactElement
P purescript-elmish-html M Elmish.HTML.Styled.Generated
map :: JSX
P purescript-fahrtwind M Fahrtwind.Icon.Heroicons
map :: forall a b h. ToHtml a b h
P purescript-flame M Flame.Html.Element
map :: forall attrs attrs_. Union attrs attrs_ (MotionProps + Props_map) => ReactComponent (Record attrs)
P purescript-framer-motion M Framer.Motion.MotionComponent
map :: (Number -> Number) -> Mat2 -> Mat2

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Mat2
map :: (Number -> Number) -> Mat2d -> Mat2d

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Mat2d
map :: (Number -> Number) -> Mat3 -> Mat3

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Mat3
map :: (Number -> Number) -> Mat4 -> Mat4

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Mat4
map :: (Number -> Number) -> Quat -> Quat

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Quat
map :: (Number -> Number) -> Vec2 -> Vec2

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Vec2
map :: (Number -> Number) -> Vec3 -> Vec3

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Vec3
map :: (Number -> Number) -> Vec4 -> Vec4

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

P purescript-gl-matrix M GLMatrix.Vec4
map :: forall b a. (a -> b) -> GunChainCtx -> GunChainCtx

Map iterates over each property and item on a node, passing it down the chain, transforming the data with the given function. It also subscribes to every item as well and listens for newly inserted items.

P purescript-gun M Gun
map :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)
P purescript-impulse M Impulse.DOM.Tags
map :: forall b a. (a -> b) -> List a -> List b
P purescript-lists-fast M Data.List.Fast
map :: Icons
P purescript-materialize M Materialize.Icons.Data
map :: forall t r. Lens' { map :: t | r } t
P purescript-mathbox M Mathbox.Lenses
map :: forall a c b. HasMap a => (b -> c) -> a b -> a c
P purescript-neon M Neon.Class.HasMap
map :: (PackageJsonContent -> PackageJsonContent) -> PackageJson -> PackageJson
P purescript-npm-package-json M Npm.PackageJson
map :: forall e. Markup e -> Markup e
P purescript-open-smolder M Text.Smolder.HTML
P purescript-openapi3 M OpenApi3.Schema.Map
Map :: forall a b. (Map a b) -> Map a b
P purescript-openapi3 M OpenApi3.Schema.Map
map :: P5 -> Number -> Number -> Number -> Number -> Number -> (Maybe Boolean) -> Number

p5js.org documentation

P purescript-p5 M P5.Math.Calculation
map :: StaticElement
P purescript-panda M Panda.HTML.Elements
P purescript-purescript-openapi3 M OpenApi3.Schema.Map
Map :: forall a b. (Map a b) -> Map a b
P purescript-purescript-openapi3 M OpenApi3.Schema.Map
map :: forall f a b. Functor f => (a -> b) -> f a -> f b
P purescript-qualified-do M QualifiedDo.ParApply
map :: FFIComponent MapAttributes

The <map> HTML element is used with area elements to define an image map.

Example:

map { name: "planetmap" }
  [ area { shape: "rect", coords: "50,50,100,100", href: "location1.html", alt: "Location 1" }
  , area { shape: "circle", coords: "200,200,50", href: "location2.html", alt: "Location 2" }
  ]

Common attributes:

| Name | Type | Description | |-------------|---------|-------------| | name | String | Name of the image map |

P purescript-react-basic-dom-beta M Beta.DOM.HTML.Map
map :: Free SpaceF Unit -> Free SpaceF Unit
P purescript-react-spaces M React.Spaces.DOM
map :: Free SpaceF Unit -> Free SpaceF Unit
P purescript-react-spaces M React.Spaces.DOM.Dynamic
map :: forall st eff. Array (Props eff st) -> Array (Component eff st) -> Component eff st
P purescript-refract M Refract.DOM
map :: forall a b f. (a -> b) -> Codensity f a -> Codensity f b
P purescript-resource M Codensity
map :: forall a b f g. (a -> b) -> Ran f g a -> Ran f g b
P purescript-resource M Ran
map :: forall nt r. Newtype nt (Variant (map :: Texture | r)) => Texture -> nt
P purescript-rito M Rito.Properties
map :: forall a o i r. (i -> o) -> Run (Transformer i o r) a

Adapts incoming values.

P purescript-run-streaming M Run.Streaming.Prelude
map :: WorldMap
P purescript-screeps-classy M Screeps.Game
map :: forall o i context channel. Array (Attr context i) -> Array (Handler context (Either channel (i -> o))) -> Array (SDOM channel context i o) -> SDOM channel context i o
P purescript-sdom M SDOM.Elements
map :: forall b a. (a -> b) -> SortedArray a -> Array b

Functor-like convenience function, equivalent to unwrapping and applying the Array map.

P purescript-sorted-arrays M Data.SortedArray
map :: forall a b. EffectFn2 (a -> b) (Node a) (Node b)
P purescript-specular M Specular.Internal.Incremental
map :: forall i. Node HTMLmap i
P purescript-spork M Spork.Html.Elements
P purescript-typelevel-eval M Type.Eval.Functor
map :: forall b a. Ord b => (a -> b) -> List a -> Either (Set b) (List b)
P purescript-unique-lists M Data.List.Unique

P purescript-maps DEPRECATED

Purely functional maps implemented in PureScript

mapM :: forall a b m r. Monad m => (a -> m b) -> Pipe a b m r

Apply a monadic function to all values flowing downstream

P purescript-pipes M Pipes.Prelude
map' :: Array ReactElement -> ReactElement
P purescript-react M React.DOM