import { IfElseArity4 } from './types' ; import { curry4 } from '@typed/functions' ; name export const ifElse = curry4 ( __ifElse ) ; function __ifElse < A , B > ( ifF , thenF , elseF , value ) { return ifF ( value ) ? thenF ( value ) : elseF ( value ) ; }