From 46d300121777f41aa0b48d97aac275eda8d90f9f Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Wed, 15 Apr 2015 00:02:28 -0400 Subject: [PATCH] improve readme example of using END --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d190a4..690a1be 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,8 @@ user> (setval (srange 2 4) [-1 -1 -1] [0 1 2 3 4 5 6 7 8 9]) Here's how to concatenate the sequence [:a :b] to every nested sequence of a sequence: ```clojure -user> (setval [ALL END] [:a :b] [[1] [1 2] [:c]]) -[[1 :a :b] [1 2 :a :b] [:c :a :b]] +user> (setval [ALL END] [:a :b] [[1] '(1 2) [:c]]) +[[1 :a :b] (1 2 :a :b) [:c :a :b]] ``` `END` is a wrapper around `srange-dynamic`, which takes in functions that return the start index and end index given the structure.