All files / src/core index.ts

100% Statements 28/28
100% Branches 2/2
100% Functions 2/2
100% Lines 26/26
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41    450x   15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x   14x   15x   15x             15x 15x      
import regex from "./regex";
import { shape, keys, mapOf, cat, fclause } from './regex';
import nullable from "./nullable";
import undefinable from "./undefinable";
import maybe from "./maybe";
import wall from "./wall";
import equals from "../preds/equals";
import any from "./any";
 
export function scat( str ) {
  return cat.apply( null, Array.prototype.slice.call( str ).map( equals ) );
};
 
const other = {
  any,
  fclause,
  wall, clause: wall,
  nullable, undefinable, maybe,
  scat,
};
 
export * from "./regex";
 
export {
  any,
  fclause,
  wall, wall as clause,
  nullable, undefinable, maybe,
  shape, keys, mapOf,
  fclause as fspec,
};
 
 
export default Object.assign( {},
  regex,
  {
    shape, keys, mapOf,
    fspec: fclause
  },
  other );