import {when} from 'rambda'
const predicate = (x: number) => x > 2const whenTrueFn = (x: number) => String(x)
describe('R.when', () => { it('happy', () => { const result = when(predicate, whenTrueFn, 1) result })
it('curry 1', () => { const fn = when(predicate, whenTrueFn) const result = fn(1) result })
it('curry 2 require explicit types', () => { const fn = when<number, string>(predicate)(whenTrueFn) const result = fn(1) result })
it('curry 3 require explicit types', () => { const result = when<number, string>(predicate)(whenTrueFn, 1) result })})