x/rambda/when.js
123456789101112import { curry } from './curry'function whenFn( predicate, whenTrueFn, input){ if (!predicate(input)) return input return whenTrueFn(input)}export const when = curry(whenFn)