Sha256: 7376ccb8d6a361f9df9294ce5f4d6a68ef9df998a9e8d33cbdc8863ee027fc97

Contents?: true

Size: 928 Bytes

Versions: 15

Compression:

Stored size: 928 Bytes

Contents

; -*- lisp -*-
;;
;; Acknowledgements to Paul Graham, Robert Morris, and their ancestor programmers.
;; nydp's main inspiration is arc, and many nydp features (including, but not limited
;; to, 'do, 'rfn, 'loop, 'for) were directly inspired by (aka stolen from) arc.arc. See
;; README.md however for some significant differences

(assign   list (fn args args))
(assign   caar (fn (arg) (car (car arg))))
(assign   cadr (fn (arg) (car (cdr arg))))
(assign   cdar (fn (arg) (cdr (car arg))))
(assign   cddr (fn (arg) (cdr (cdr arg))))
(assign  cadar (fn (arg) (car (cdar arg))))
(assign  caddr (fn (arg) (car (cddr arg))))
(assign  cdddr (fn (arg) (cdr (cddr arg))))
(assign cadddr (fn (arg) (car (cdddr arg))))
(assign     no (fn (arg) (cond arg nil t)))
(assign   just (fn (arg) arg))
(assign    isa (fn (type obj) (eq? (type-of obj) type)))
(assign  pair? (fn (arg) (isa 'pair arg)))
(assign  hash? (fn (arg) (isa 'hash arg)))

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nydp-0.2.3 lib/lisp/core-000.nydp
nydp-0.2.2 lib/lisp/core-000.nydp
nydp-0.2.1 lib/lisp/core-000.nydp
nydp-0.2.0 lib/lisp/core-000.nydp
nydp-0.1.15 lib/lisp/core-000.nydp
nydp-0.1.14 lib/lisp/core-000.nydp
nydp-0.1.13.2 lib/lisp/core-000.nydp
nydp-0.1.13.1 lib/lisp/core-000.nydp
nydp-0.1.13 lib/lisp/core-000.nydp
nydp-0.1.12 lib/lisp/core-000.nydp
nydp-0.1.11 lib/lisp/core-000.nydp
nydp-0.1.10 lib/lisp/core-000.nydp
nydp-0.1.9.1 lib/lisp/core-000.nydp
nydp-0.1.9 lib/lisp/core-000.nydp
nydp-0.1.8 lib/lisp/core-000.nydp