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