Closed kasperisager closed 9 years ago
Note: This may have implications for partially applied functions.
Hmm, this feels a bit like magic to me. :/ I'd prefer introducing explicit function/shiftThis
for this use case, e.g.
import { shiftThis as _ } from "trine/function/shiftThis";
import { map } from "trine/iterable/map";
[1, 2, 3]::map(_(x => x * 2))
@jussi-kalliokoski: i think your proposal is the way to go
This allows the use of ES6 lambdas in
iterable/map
rather than relying solely on function binding.This...
...can therefore be shortened to: