import { createErrorReporter } from "./error-reporter" ; import { createVal } from "./val" ; param { function } left param { function } right return { function } export const createAnd = ctx => function and ( left , right ) { return function andFn ( a , msg ? ) { return createErrorReporter ( "and" , ctx , msg , [ a , left , right ] , false , true ) ( ( ) => { const val = createVal ( ctx ) ; return val ( left ) ( a ) && val ( right ) ( a ) ; } ) ; } ; } ;