Browse by tag
Every function is classified along a few axes — what kind of thing it is, how it consumes iterables, what it accepts as input, what it returns, and whether it's pure. Click any tag to see every function carrying it.
-
accepts iterable
54
— Works with arrays, Iterators, or Generators interchangeably.
-
accumulator
5
— Self-returning factory — each call returns a fresh copy with more state until finalised.
-
composer
6
— Takes several callables and stitches them into a single new callable.
-
higher-order
49
— Takes one or more callables (predicates, mappers, comparators) as arguments.
-
lazy
18
— Returns a Generator; values produced on demand. Never fully materialises the source.
-
predicate
34
— Tests a value and returns true or false.
-
pure
145
— No side effects — same input always produces the same output, given any callables passed in are themselves pure.
-
reducer
18
— Collapses a whole collection down to a single result.
-
returns bool
34
— Ultimately resolves to true or false.
-
returns Closure
138
— The outer call binds arguments and hands back a reusable Closure — no answer is computed yet.
-
returns value
5
— Resolves to a single concrete value (not another Closure, not a collection).
-
short-circuit
7
— Stops consuming the source the moment it has enough to answer. Safe with infinite Generators.
-
terminal
28
— Always consumes the entire source before returning. Do not use with infinite Generators.
-
throws
14
— Can raise an exception on bad input. The exception type is listed in the Details section.
-
transformer
79
— Takes a value and returns a new value of the same or related kind — no reduction.
-
variadic
22
— Accepts any number of arguments of the same kind via ...$args.