declare const nonEmpty: Array.NonEmptyReadonlyArray<number>;
pipe(
nonEmpty,
Array.replaceOption(0, 1),
Option.map(potentiallyEmpty => potentiallyEmpty), // => potentiallyEmpty is now Array<number>
);
declare const nonEmpty: Array.NonEmptyReadonlyArray<number>;
pipe(
nonEmpty,
Array.replaceOption(0, 1),
Option.map(potentiallyEmpty => potentiallyEmpty), // => potentiallyEmpty is now Array<number>
);