compose
compose :: [ Function ] → a → Boolean
Last updated
compose :: [ Function ] → a → Boolean
Last updated
It's the very backbone of Deep Waters, it takes a list of validators (functions that accept a value and return a boolean) and returns a new function that takes a value and evaluates whether is valid for all the validators in .
Please note, compose removes all the duplicate validators