Back

validated (clj)

(source)

function

(validated new-instance)
Return a function which constructs an instant by calling constructor after first validating that those arguments are in range and otherwise plausible. The resulting function will throw an exception if called with invalid arguments.

Examples