clojure / core mapv



Clojure Core Mapv



オリジナルを表示するように私を指してください

(ns $clojureDoc.core.mapv) How to use: (mapv f coll) (mapv f c1 c2) (mapv f c1 c2 c3) (mapv f c1 c2 c3 & colls) Returns a vector consisting of the result of applying f to the set of first items of each coll, followed by applying f to the set of second items in each coll, until any one of the colls is exhausted. Any remaining items in other colls are ignored. Function f should accept number-of-colls arguments. Returns a vector consisting of the items corresponding to each set participating in the function f, until the number of items in a collection is exhausted, and the rest of the other items are ignored. function f should accept the same number of arguments as provided (println (mapv #(- (* 3 %1) 1) (range 1 3))) => [2 5] (println (mapv + [1 2 3] (iterate inc 1))) => [2 4 6]