export function wrapArray < T > ( subj ) { return Array . isArray ( subj ) ? subj : [ subj ] ; } export class UnreachableCaseError extends Error { constructor ( val ) { super ( `Unreachable case: ${ val }` ) ; } }