nth function added to stdlib, doc updates

This commit is contained in:
2021-03-02 23:11:57 +01:00
parent 8586a66285
commit 3868a32168
4 changed files with 17 additions and 34 deletions

View File

@@ -49,6 +49,9 @@
; return fifth element of list
(defun fifth (l) (index l 4))
; return nth element of list, indexing from 0
(defun nth (i l) (index l i))
; return 1 when list contains item otherwise 0
(defun member (lst itm)
(do