diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-01-17 19:49:25 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-01-17 19:49:25 -0800 |
commit | 1157ea776e88fa956e1e524813ab22a9c4e46ca0 (patch) | |
tree | 0f93e1e88a70e033b4bf01ff96d8be4cb6f72a7f /txr.1 | |
parent | 4eca98b2703d71eec4f47e9b9300a825722bd1cc (diff) | |
download | txr-1157ea776e88fa956e1e524813ab22a9c4e46ca0.tar.gz txr-1157ea776e88fa956e1e524813ab22a9c4e46ca0.tar.bz2 txr-1157ea776e88fa956e1e524813ab22a9c4e46ca0.zip |
Fix incorrect split examples.
* txr.1: examples were calling split as if it were
variadic, accepting multiple indices as separate
arguments. This is not the case; a sequence of indices
must be passed as one argument.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21971,10 +21971,10 @@ of one element. (split "abc" 0) -> ("" "abc") (split "abc" 3) -> ("abc" "") (split "abc" 1) -> ("a" "bc") - (split "abc" 0 1 2 3) -> ("" "a" "b" "c" "") - (split "abc" 1 2) -> ("a" "b" "c") + (split "abc" '(0 1 2 3)) -> ("" "a" "b" "c" "") + (split "abc" '(1 2)) -> ("a" "b" "c") - (split "abc" -1 1 2 15) -> ("a" "b" "c") + (split "abc" '(-1 1 2 15)) -> ("a" "b" "c") ;; triple split at makes two additional empty pieces (split "abc" '(1 1 1)) -> ("a" "" "" "bc") |