(self: Iterable<A>)
| 1233 | * @since 2.0.0 |
| 1234 | */ |
| 1235 | export function init<A>(self: Iterable<A>): Option.Option<Array<A>> { |
| 1236 | const as = fromIterable(self) |
| 1237 | return isReadonlyArrayNonEmpty(as) ? Option.some(initNonEmpty(as)) : Option.none() |
| 1238 | } |
| 1239 | |
| 1240 | /** |
| 1241 | * Returns all elements except the last of a `NonEmptyReadonlyArray`. |
nothing calls this directly
no test coverage detected