From 5227a6306e9f7b6d5abb8b9de6ed16a5bf6c6eb1 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 20 Aug 2024 11:41:58 +0100 Subject: [PATCH] Fix comment on manual clojure example, it does actually work > (def data [1 2 3 4 5 6 7 8]) > (map inc data) (2 3 4 5 6 7 8 9) > (into (empty data) (map inc data)) [2 3 4 5 6 7 8 9] > (sp/transform sp/ALL inc data) [2 3 4 5 6 7 8 9] --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 91741f5..531c7c0 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,8 @@ Consider these examples: ```clojure ;; Manual Clojure (map inc data) ;; doesn't work, becomes a lazy sequence -(into (empty data) (map inc data)) ;; doesn't work, reverses the order of lists + +(into (empty data) (map inc data)) ;; works correctly ;; Specter (transform ALL inc data) ;; works for all Clojure datatypes with near-optimal efficiency