(f: (a: A) => Option<B>)
| 455 | * @since 2.0.0 |
| 456 | */ |
| 457 | export const toRefinement = <A, B extends A>(f: (a: A) => Option<B>): (a: A) => a is B => (a: A): a is B => isSome(f(a)) |
| 458 | |
| 459 | /** |
| 460 | * Wraps the first element of an `Iterable` in a `Some`, or returns `None` if |