(expression) =>
pipe(
Match.value(expression),
Match.when(Array.isEmptyReadonlyArray, () => []),
Match.when(Array.isNonEmptyReadonlyArray, Array.unprepend)
)
// vs
flow(
Match.value,
Match.when(Array.isEmptyReadonlyArray, () => []),
Match.when(Array.isNonEmptyReadonlyArray, Array.unprepend)
)
(expression) =>
pipe(
Match.value(expression),
Match.when(Array.isEmptyReadonlyArray, () => []),
Match.when(Array.isNonEmptyReadonlyArray, Array.unprepend)
)
// vs
flow(
Match.value,
Match.when(Array.isEmptyReadonlyArray, () => []),
Match.when(Array.isNonEmptyReadonlyArray, Array.unprepend)
)