(audit audit-map value-map)
Takes two maps audit-map and value-map. First check to see if they have the same keys. If not, it throws an exception. If so, the valid-audit key is set to true in the value-map, and the audit-map is reduced using audit-helper. The value-map is the initial value for the reduce operation.
Takes two maps audit-map and value-map. First check to see if they have the same keys. If not, it throws an exception. If so, the valid-audit key is set to true in the value-map, and the audit-map is reduced using audit-helper. The value-map is the initial value for the reduce operation.
(audit-helper value-map [k v])
Takes two maps, the value map and the audit map. checks to see if valid-audit key is truthy, if not it doesn't run anything. If so, it checks every fn in the vector and applies the true or false value to the map, under the key valid-audit.
Takes two maps, the value map and the audit map. checks to see if valid-audit key is truthy, if not it doesn't run anything. If so, it checks every fn in the vector and applies the true or false value to the map, under the key valid-audit.
(regex reg)
Takes a regular express and returns a funtion. the returning function takes input, turns it into a string and runs re-find with the regex and the input.
Takes a regular express and returns a funtion. the returning function takes input, turns it into a string and runs re-find with the regex and the input.
(truthy value)
Turns truthy into true and false and nil into false
Turns truthy into true and false and nil into false
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close