Skip to content

Commit

Permalink
Cleaner document references
Browse files Browse the repository at this point in the history
  • Loading branch information
evg-tso committed Sep 7, 2023
1 parent 84c494e commit 7ac38dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/clojure/aerospike_clj/collections.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
(java.util.function Consumer)))

(defn ->list
"Returns a new [java.util.List] containing the result of applying `mapper-fn` to each item in `col`.
"Returns a new [[java.util.List]] containing the result of applying `mapper-fn` to each item in `col`.
Returns an unmodifiable list.
*Note*: This will usually be faster than `(mapv mapper-fn col)` because:
- This function allocates a new [java.util.List] in the exactly `(.size col)` size and then
- This function allocates a new [[java.util.ArrayList]] in the exact `(.size col)` size, and then
fills it with the mapped values.
- If the underlying collection is not a Clojure sequence, then `mapv` will first convert it
to a Clojure sequence and then map over it. This function will not do that."
Expand Down

0 comments on commit 7ac38dc

Please sign in to comment.