extension CurryFunction on R Function(S, T) { /// Curry a binary function with its first argument. R Function(T) curry(S first) => (T second) => this(first, second); }
Dart functional library that defines composition, curry, etc
Example that does not work. I reported it here.
Good explanation of type system in Dart as it relates to Function types
No way to create an inline function literal. Use top level function instead.