import type { Assert } from './prelude.js' type Predicate = (value: T) => boolean const if_ = (predicate: Predicate, then_: Assert, else_: Assert) => (value: T): A | B => predicate(value) ? then_(value) : else_(value) export default if_