fpfantasy library

Classes

ChainList<T>
ChainMap<K, V>
Just<T>
Matching
Maybe<T>
Nothing

Properties

always ↔ <T>(T) → T
read / write
chainList ↔ <T>(List<T>) → ChainList<T>
Calls each functions for each value in the list. [...]
read / write
chainMap ↔ <K, V>(Map<K, V>) → ChainMap<K, V>
Calls each functions for each value in the list. [...]
read / write
default_ ↔ String
read / write
types ↔ dynamic
Provides union types. [...]
read / write

Functions

add(int a, [ int b ]) → dynamic
ap<T>(List<Function> functions, List<T> data) → List
Calls each functions for each value in the list. [...]
capitalize(String s) → String
checkTypes<T>(List types, T arg, [ dynamic error(String a) ]) → dynamic
compose<T, E>(List<E Function(T _)> functions) → Function
https://en.wikipedia.org/wiki/Function_composition [...]
composeK<E, T>(List<E Function(T _)> functions) → Function
concat<T>(dynamic a, dynamic b) → dynamic
Concat your values like String, int, List, Map. It's works and with nested values, because this function using recursion. [...]
curry(Function fn, { int argsLength: 2 }) → Function
eqBy<T>(dynamic f(T), T a, T b) → bool
equals<T>(T a, T b) → bool
isNotNull<T>(T a) → bool
isNull<T>(T a) → bool
matching<T>(T a, [ dynamic b ]) → Function
Same with switch/case or if/ifelse. Can be call with List, Map and with 'curring'. [...]
matchWithoutCurry(List a) → Function
typeToString<T>(T type) → String
zip<T>(List<T> a, List<T> b) → List
zipMap<T>(List<T> a, List<T> b) → Map
zipWith<T>(List f(T y, T x), List<T> a, List<T> b) → List