/** * @tsplus static DSL conditionalF_ */ export function conditionalF_() { return , Y extends HKT.Kind>( predicate: boolean, onTrue: LazyArg, onFalse: LazyArg ): HKT.Kind< F, HKT.Infer, HKT.Infer, HKT.Infer > => (predicate ? onTrue() : onFalse()) } /** * @tsplus static DSL conditionalF */ export function conditionalF() { return , Y extends HKT.Kind>( onTrue: LazyArg, onFalse: LazyArg ): (( predicate: boolean ) => HKT.Kind< F, HKT.Infer, HKT.Infer, HKT.Infer >) => (b) => b ? onTrue() : onFalse() }