Search results

toUnfoldable :: forall f. Unfoldable f => Array ~> f

Convert an Array into an Unfoldable structure.

P purescript-arrays M Data.Array
toUnfoldable :: forall f a. Unfoldable f => NonEmptyArray a -> f a
P purescript-arrays M Data.Array.NonEmpty
toUnfoldable :: forall f. Unfoldable f => List ~> f

Convert a list into any unfoldable structure.

Running time: O(n)

P purescript-lists M Data.List
toUnfoldable :: forall f. Unfoldable f => List ~> f

Convert a list into any unfoldable structure.

Running time: O(n)

P purescript-lists M Data.List.Lazy
toUnfoldable :: forall f. Unfoldable f => NonEmptyList ~> f
P purescript-lists M Data.List.Lazy.NonEmpty
toUnfoldable :: forall f. Unfoldable f => NonEmptyList ~> f
P purescript-lists M Data.List.NonEmpty
toUnfoldable :: forall f k v. Unfoldable f => Map k v -> f (Tuple k v)

Convert a map to an unfoldable structure of key/value pairs where the keys are in ascending order

P purescript-ordered-collections M Data.Map.Internal
toUnfoldable :: forall f a. Unfoldable f => Set a -> f a

Convert a set to an unfoldable structure.

P purescript-ordered-collections M Data.Set
toUnfoldable :: forall f a. Unfoldable f => NonEmptySet a -> f a

Convert a set to an unfoldable structure.

P purescript-ordered-collections M Data.Set.NonEmpty
toUnfoldable :: forall f a. Unfoldable f => Object a -> f (Tuple String a)

Unfolds a map into a list of key/value pairs

P purescript-foreign-object M Foreign.Object
toUnfoldable :: forall f a. Unfoldable f => HashSet a -> f a

Turn a set into an unfoldable functor.

You probably want to use toArray instead, especially if you want to get an array out.

P purescript-unordered-collections M Data.HashSet
toUnfoldable :: forall f s a. Unfoldable f => Nat s => Vec s a -> f a

Convert a vector into any Unfoldable.

P purescript-sized-vectors M Data.Vec
toUnfoldable :: forall f g i o. Unfoldable g => Comonad f => i -> MealyT f i o -> g o

Extract all the outputs of a machine, given some input.

P purescript-machines M Data.Machine.Mealy
toUnfoldable :: forall f. Unfoldable f => TokenList -> f SourceToken
P purescript-language-cst-parser M PureScript.CST.Range.TokenList
toUnfoldable :: forall f. Unfoldable f => OSet ~> f
P purescript-ordered-set M Data.Set.Ordered
toUnfoldable :: forall f. Functor f => Unfoldable f => Seq ~> f

Probably O(n), but depends on the Unfoldable instance. Turn a Seq into any Unfoldable.

P purescript-sequences M Data.Sequence
toUnfoldable :: forall f. Functor f => Unfoldable f => Seq ~> f

Probably O(n), but depends on the Unfoldable instance. Turn a Seq into any Unfoldable.

P purescript-sequences M Data.Sequence.NonEmpty
toUnfoldable :: forall f. Functor f => Unfoldable f => OrdSeq ~> f

Probably O(n), but depends on the Unfoldable instance. Unfold an ordered sequence in ascending order.

P purescript-sequences M Data.Sequence.Ordered
toUnfoldable :: forall f. Unfoldable f => JArray -> f JSON

Unfolds a JArray into JSON items

P purescript-json M JSON.Array
toUnfoldable :: forall f. Unfoldable f => JObject -> f (Tuple String JSON)

Unfolds an object into key/value pairs.

P purescript-json M JSON.Object
toUnfoldable :: forall f. Unfoldable f => Headers -> f (Tuple String String)
P purescript-js-fetch M JS.Fetch.Headers
toUnfoldable :: forall f k v. Key k => Unfoldable f => Map k v -> f (Tuple k v)

Unfolds a map into a list of key/value pairs

P purescript-js-maps M JS.Map.Primitive.Internal
toUnfoldable :: forall f. Unfoldable f => ArrayView ~> f
P purescript-array-views M Data.ArrayView
toUnfoldable :: forall a f. Unfoldable f => NonEmptyArrayView a -> f a
P purescript-array-views M Data.ArrayView.NonEmpty
toUnfoldable :: forall f. Unfoldable f => Headers -> f (Tuple String String)
P purescript-fetch-core M Fetch.Core.Headers
toUnfoldable :: forall f k v. Unfoldable f => Newtype k String => ObjectMap k v -> f (Tuple k v)
P purescript-identy M Identy.ObjectMap
toUnfoldable :: forall f. Unfoldable f => Headers -> f (Tuple String String)
P purescript-payload M Payload.Headers
toUnfoldable :: forall f. Unfoldable f => List ~> f

Convert a List into an Unfoldable structure.

P purescript-rrb-list M RRBList
toUnfoldable :: forall f t a. Unfoldable f => SafeList t a -> f a

Converts a SafeList into some unfoldable structure.

P purescript-safelist M Data.List.Safe
toUnfoldable :: forall v k p f. Unfoldable f => Unfoldable p => Trie k v -> f (Tuple (p k) v)
P purescript-search-trie M Data.Search.Trie.Internal
toUnfoldable :: forall a f. Unfoldable f => List a -> f a
P purescript-unique-lists M Data.List.Unique
toUnfoldable :: forall f. Unfoldable f => Headers -> f (Tuple String String)
P purescript-web-fetch M Web.Fetch.Headers
toUnfoldable1 :: forall f a. Unfoldable1 f => NonEmptyArray a -> f a
P purescript-arrays M Data.Array.NonEmpty
toUnfoldable1 :: forall f a. Unfoldable1 f => NonEmptySet a -> f a

Convert a set to a non-empty unfoldable structure.

P purescript-ordered-collections M Data.Set.NonEmpty
toUnfoldable1 :: forall f. Functor f => Unfoldable1 f => Seq ~> f

Probably O(n), but depends on the Unfoldable instance. Turn a Seq into any Unfoldable1.

P purescript-sequences M Data.Sequence.NonEmpty
toUnfoldable1 :: forall a f. Unfoldable1 f => NonEmptyArrayView a -> f a
P purescript-array-views M Data.ArrayView.NonEmpty
toUnfoldableBy :: forall v k a f. Unfoldable f => (k -> v -> a) -> HashMap k v -> f a

Convert a HashMap to an unfoldable functor, like Array or List

This takes a function from key and value to the element type of the result. For example, fixing the functor to Array, passing Tuple will result in an array of key-value pairs.

toUnfoldableBy Tuple        m == toUnfoldableUnordered m
toUnfoldableBy const        m == keys m
toUnfoldableBy (flip const) m == values m
P purescript-unordered-containers M Data.HashMap
toUnfoldableUnordered :: forall f k v. Unfoldable f => Map k v -> f (Tuple k v)

Convert a map to an unfoldable structure of key/value pairs

While this traversal is up to 10% faster in benchmarks than toUnfoldable, it leaks the underlying map stucture, making it only suitable for applications where order is irrelevant.

If you are unsure, use toUnfoldable

P purescript-ordered-collections M Data.Map.Internal
toUnfoldableUnordered :: forall v k f. Unfoldable f => HashMap k v -> f (Tuple k v)

Convert a map to an Unfoldable of Tuples. No particular ordering is guaranteed.

P purescript-unordered-containers M Data.HashMap
toUnfoldableDescending :: forall f a. Functor f => Unfoldable f => OrdSeq a -> f a

Probably O(n), but depends on the Unfoldable instance. Unfold an ordered sequence in descending order.

P purescript-sequences M Data.Sequence.Ordered

No further results.