Very simple question. Say you have code like this:
const max = pipe( [1, 2, 3, 4, 5] as Iterable<number>, // the type cast is just for example purposes to demonstarte starting a pipe with an iterable Array.fromIterable, (a) => Option.liftPredicate(Array.isNonEmptyReadonlyArray)(a), Option.map(Array.max(Order.number)) )
const max = pipe( [1, 2, 3, 4, 5] as Iterable<number>, // the type cast is just for example purposes to demonstarte starting a pipe with an iterable Array.fromIterable, (a) => Option.liftPredicate(Array.isNonEmptyReadonlyArray)(a), Option.map(Array.max(Order.number)) )