Skip to main content

fmap

function

clojure.test.check.generators/fmap

(fmap [f gen])
Returns a generator like `gen` but with values transformed by `f`. E.g.: (gen/sample (gen/fmap str gen/nat)) => ("0" "1" "0" "1" "4" "3" "6" "6" "4" "2") Also see gen/let for a macro with similar functionality.

No examples yet. Be the first to add one!