diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-04-14 20:45:31 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-04-14 20:45:31 -0700 |
commit | 186a378870e2ceaad4cb167d0d24d4d0a3a9bb8e (patch) | |
tree | a94a21483c8cab57dcd14c998d054b9f76b5372d /cppawk-cons.1 | |
parent | 80e321e5615e72c3fed5a1986ef4b227d6d1f91f (diff) | |
download | cppawk-186a378870e2ceaad4cb167d0d24d4d0a3a9bb8e.tar.gz cppawk-186a378870e2ceaad4cb167d0d24d4d0a3a9bb8e.tar.bz2 cppawk-186a378870e2ceaad4cb167d0d24d4d0a3a9bb8e.zip |
cons: add ldiff, last and butlast.
Diffstat (limited to 'cppawk-cons.1')
-rw-r--r-- | cppawk-cons.1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cppawk-cons.1 b/cppawk-cons.1 index d7002e7..a39b563 100644 --- a/cppawk-cons.1 +++ b/cppawk-cons.1 @@ -84,6 +84,10 @@ cons \- Lisp-like data representation and control flow macros nthcdr(i, x) // suffix of x starting at i-th item + ldiff(x, y) // prefix of x omitting suffix y. + last(x, [n]) // suffix of x of length n, defaulting to 1. + butlast(x, [n]) // prefix of x omitting last n, defaulting to 1. + reverse(x) // reverse list x iota(x, y[, d]) // numbers from x to y, incrementing by |