(f: (a: A) => Option<B>)
| 354 | * @since 2.0.0 |
| 355 | */ |
| 356 | 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)) |
| 357 | |
| 358 | /** |
| 359 | * Converts an `Iterable` into an `Option`, wrapping the first element if it |