From 186a378870e2ceaad4cb167d0d24d4d0a3a9bb8e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 14 Apr 2022 20:45:31 -0700 Subject: cons: add ldiff, last and butlast. --- cppawk-cons.1 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cppawk-cons.1') 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 -- cgit v1.2.3