1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 15x 15x 2807x 2807x 1687x 1120x 1120x | import coerceIntoClause from "./coerceIntoClause"; export default function clauseFromAlts( alts ) { if ( !alts ) { Iconsole.error( alts ); throw '!'; } if ( alts.clause ) { return alts.clause; } else if ( alts.pred ) { return coerceIntoClause( alts.pred ); } else E{ console.error( 'unsupported:', alts ); throw 'Not implemented'; } } |