(wrap-first f)
Returns the first element of the function it is wrapping
((wrap-first identity) [1 2 3]) => 1
Returns the first element of the function it is wrapping ((wrap-first identity) [1 2 3]) => 1
(wrap-suppress f)
Suppresses the function it is wrapping
((wrap-suppress (fn [_] (throw (Exception.)))) :hello) => nil
Suppresses the function it is wrapping ((wrap-suppress (fn [_] (throw (Exception.)))) :hello) => nil
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close