Search results

foldl :: forall f a b. Foldable f => (b -> a -> b) -> b -> f a -> b
P purescript-foldable-traversable M Data.Foldable
foldl :: forall a b. (b -> a -> b) -> b -> Array a -> b
P purescript-arrays M Data.Array
foldl :: forall f a b. Monad f => (b -> a -> b) -> b -> ListT f a -> f b

Fold a list from the left, accumulating the result using the specified function.

P purescript-transformers M Control.Monad.List.Trans
foldl :: forall a b t. TypedArray a t => (b -> t -> b) -> b -> ArrayView a -> Effect b

Fold a list from the left, accumulating the result using the specified function.

P purescript-arraybuffer M Data.ArrayBuffer.Typed
foldl :: forall a. (a -> Octet -> a) -> a -> ByteString -> a

Θ(n) Fold a byte string.

P purescript-bytestrings M Data.ByteString
foldl :: forall b a f. Foldable f => Fold a b -> f a -> b

Run a Fold by providing a Foldable container of inputs, and then generating a single output. This is analogous to the foldl function from Data.Foldable.

P purescript-folds M Control.Fold
foldl :: forall a. (a -> DataBuff -> a) -> a -> Builder -> a

Stack-safe foldl over a Builder. O(n)

P purescript-arraybuffer-builder M Data.ArrayBuffer.Builder.Internal
foldl :: forall b a. Iso (Tuple a b) a -> Iso (Tuple a (List b)) a
P purescript-partial-isomorphisms M Control.Isomorphism.Partial.Derived
foldl :: forall a b f. Foldable f => (b -> a -> Return b) -> b -> f a -> b
P purescript-return M Return.Folds
foldl :: forall a b parentTypeLock. (b -> a -> b) -> b -> Array (SelectionSet parentTypeLock a) -> SelectionSet parentTypeLock b
P purescript-graphqlclient M GraphQLClient.Implementation
foldl :: forall b a m. Monad m => (b -> a -> b) -> b -> StreamT m a -> m b
P purescript-monadic-streams M Data.Stream
foldl :: forall a. (Int -> a -> a) -> a -> Array Char -> a
P purescript-murmur3 M Murmur3.UTF8
foldl :: forall f a b. Foldable f => Fold a b -> f a -> b

Run a Fold by providing a Foldable container of inputs, and then generating a single output. This is analogous to the foldl function from Data.Foldable.

P purescript-open-folds M Control.Fold
foldl1 :: forall t a. Foldable1 t => (a -> a -> a) -> t a -> a
P purescript-foldable-traversable M Data.Semigroup.Foldable
foldl1 :: forall f a. Foldable f => (a -> a -> a) -> NonEmpty f a -> a

Fold a non-empty structure, collecting results using a binary operation.

foldl1 (+) (1 :| [2, 3]) == 6
P purescript-nonempty M Data.NonEmpty
foldl1 :: forall a. (a -> a -> a) -> NonEmptyArray a -> a
P purescript-arrays M Data.Array.NonEmpty
foldl' :: forall f a b. Monad f => (b -> a -> f b) -> b -> ListT f a -> f b

Fold a list from the left, accumulating the result (effectfully) using the specified function.

P purescript-transformers M Control.Monad.List.Trans
foldl1 :: forall a t. Partial => TypedArray a t => (t -> t -> t) -> ArrayView a -> Effect t

Folding from the left. Assumes the typed array is non-empty.

P purescript-arraybuffer M Data.ArrayBuffer.Typed
foldl1 :: forall v k f. Foldable (f k) => (v -> v -> v) -> NonEmpty f k v -> v
P purescript-indexed-nonempty M Data.NonEmpty.Indexed
foldl1 :: forall t f b. Foldable1 t => (forall a. b -> f a -> b) -> b -> t f -> b
P purescript-functor1 M Data.Foldable1
foldlOf :: forall s t a b r. Fold (Dual (Endo Function r)) s t a b -> (r -> a -> r) -> r -> s -> r

Left fold over a Fold.

P purescript-profunctor-lenses M Data.Lens.Fold
foldlRec :: forall f a b. MonadRec f => (b -> a -> b) -> b -> ListT f a -> f b

Fold a list from the left, accumulating the result using the specified function. Uses tail call optimization.

P purescript-transformers M Control.Monad.List.Trans
foldlRec' :: forall f a b. MonadRec f => (b -> a -> f b) -> b -> ListT f a -> f b

Fold a list from the left, accumulating the result (effectfully) using the specified function. Uses tail call optimization.

P purescript-transformers M Control.Monad.List.Trans
foldlVFRL :: forall rl row proxy a b. FoldableVFRL rl row => proxy rl -> (b -> a -> b) -> b -> VariantF row a -> b
P purescript-variant M Data.Functor.Variant
P purescript-heterogeneous M Heterogeneous.Folding
P purescript-heterogenous M Heterogenous.Folding
foldlValues :: forall accum row fieldType rowList. RowToList row rowList => FoldlValues rowList row fieldType => (accum -> fieldType -> accum) -> accum -> Record row -> accum
P purescript-record-extra-srghma M Record.ExtraSrghma.FoldlValues
P purescript-record-extra-srghma M Record.ExtraSrghma.FoldlValues
foldlDefault :: forall f a b. Foldable f => (b -> a -> b) -> b -> f a -> b

A default implementation of foldl using foldMap.

Note: when defining a Foldable instance, this function is unsafe to use in combination with foldMapDefaultL.

P purescript-foldable-traversable M Data.Foldable
foldlDefault :: forall i f a b. FoldableWithIndex i f => (b -> a -> b) -> b -> f a -> b

A default implementation of foldl using foldlWithIndex

P purescript-foldable-traversable M Data.FoldableWithIndex
P purescript-heterogeneous M Heterogeneous.Folding
foldlCurrent :: forall b a. { cur :: b -> a -> b, rest :: b -> a -> b } -> b -> ZipperArray a -> b

Performs a foldl using the provided functions to transform the items. The cur function is used for the current item, and the rest function is used for the other items.

P purescript-zipperarray M Data.ZipperArray
foldl1Default :: forall t a. Foldable1 t => (a -> a -> a) -> t a -> a

A default implementation of foldl1 using foldMap1.

Note: when defining a Foldable1 instance, this function is unsafe to use in combination with foldMap1DefaultL.

P purescript-foldable-traversable M Data.Semigroup.Foldable
P purescript-heterogeneous M Heterogeneous.Folding
foldLocations :: forall a. (a -> LocationState -> Effect a) -> (LocationState -> Effect a) -> PushStateInterface -> Effect (Effect Unit)

Folds effectfully over location changes given callbacks for handling changes and the initial location. Returns an effect which removes the listener.

P purescript-routing M Routing.PushState
foldlSelected :: forall b a f. Foldable f => Eq a => (IsSelected -> b -> a -> b) -> b -> SelectionFoldable f a -> b
P purescript-selection-foldable M Data.SelectionFoldable
foldlSelected :: forall b a d f. Foldable f => Eq a => { rest :: b -> a -> b, sel :: b -> Tuple d a -> b } -> b -> SelectionFoldableWithData f d a -> b

Performs a foldl, using the provided functions to transform the items and the data. The sel function is used for all items a that are equal to the selected item, and the rest function is used for the other items.

P purescript-selection-foldable M Data.SelectionFoldableWithData
foldlWithIndex :: forall f i a b. FoldableWithIndex i f => (i -> b -> a -> b) -> b -> f a -> b
P purescript-foldable-traversable M Data.FoldableWithIndex
foldlWithIndex :: forall a b t. TypedArray a t => (Index -> b -> t -> b) -> b -> ArrayView a -> Effect b

Fold a list from the left, accumulating the result using the supplied function. The accumulating function receives the index, the accumulated value and the element.

P purescript-arraybuffer M Data.ArrayBuffer.Typed
P purescript-heterogeneous M Heterogeneous.Folding
foldlWithIndex :: forall a b f i. FoldableWithIndex i f => (i -> b -> a -> Return b) -> b -> f a -> b
P purescript-return M Return.Folds
P purescript-record-extra-srghma M Record.ExtraSrghma.FoldlValues
P purescript-heterogeneous M Heterogeneous.Folding
P purescript-heterogeneous M Heterogeneous.Folding
P purescript-record-extra-srghma M Record.ExtraSrghma.FoldlValues
foldlValuesImpl :: forall fieldType row rowList accum. FoldlValues rowList row fieldType => Proxy rowList -> (accum -> fieldType -> accum) -> accum -> Record row -> accum
P purescript-record-extra-srghma M Record.ExtraSrghma.FoldlValues
P purescript-heterogeneous M Heterogeneous.Folding
P purescript-heterogeneous M Heterogeneous.Folding
P purescript-heterogeneous M Heterogeneous.Folding
foldlRecordRowList :: forall b f r rl x. FoldlRecord f x rl r b => f -> x -> RLProxy rl -> Record r -> b
P purescript-heterogeneous M Heterogeneous.Folding