From 78b16ee5b7b08fc60dce885520f5462d6a7dd5c5 Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Fri, 29 Jan 2016 11:08:07 -0800 Subject: [PATCH] improve example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5681cc7..a8fc0cc 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,11 @@ user> (transform [(srange 1 4) ALL odd?] inc [0 1 2 3 4 5 6 7]) [0 2 2 4 4 5 6 7] ``` -Here's how to replace the subsequence from index 2 to 4 with [-1 -1 -1]: +Here's how to replace the subsequence from index 2 to 4 with [:a :b :c :d :e]: ```clojure -user> (setval (srange 2 4) [-1 -1 -1] [0 1 2 3 4 5 6 7 8 9]) -[0 1 -1 -1 -1 4 5 6 7 8 9] +user> (setval (srange 2 4) [:a :b :c :d :e] [0 1 2 3 4 5 6 7 8 9]) +[0 1 :a :b :c :d :e 4 5 6 7 8 9] ``` Here's how to concatenate the sequence [:a :b] to every nested sequence of a sequence: