more things!

This commit is contained in:
FelixBrendel
2018-10-09 00:06:28 +02:00
parent 905500ab98
commit 1ea4cf5213
8 changed files with 313 additions and 73 deletions
+40 -10
View File
@@ -31,25 +31,53 @@
#+RESULTS:
: t
** TODO first (car)
** TODO rest (cdr)
** TODO pair (cons)
** DONE first (car)
CLOSED: [2018-10-08 Mo 20:28]
** DONE rest (cdr)
CLOSED: [2018-10-08 Mo 20:28]
** DONE pair (cons)
CLOSED: [2018-10-08 Mo 20:28]
** TODO load (import)
** TODO define
** DONE define
CLOSED: [2018-10-08 Mo 20:28]
** TODO lambda
** TODO progn
** TODO eval
** TODO quote
** TODO print
** TODO read
** TODO help
** DONE eval
CLOSED: [2018-10-08 Mo 20:28]
** DONE quote
CLOSED: [2018-10-08 Mo 20:28]
** DONE list
CLOSED: [2018-10-08 Mo 21:06]
#+begin_src emacs-lisp
(quote (cons 2 (cons 3 (cons 4 ()))))
;; (cons 2 (cons 3 (cons 4 nil)))
(quote (2 . (3 . (4 . ()))))
;; (2 3 4)
#+end_src
#+begin_src emacs-lisp
(list (cons 2 (cons 3 (cons 4 ()))))
;; ((2 3 4))
(list (quote(2 . (3 . (4 . ())))))
#+end_src
** DONE print
CLOSED: [2018-10-08 Mo 20:28]
** DONE read
CLOSED: [2018-10-08 Mo 20:28]
** DONE type
CLOSED: [2018-10-08 Mo 21:30]
** TODO info
* Types
- Symbol
- Number
- String
- Cons-cell (list)
- pair (cons-cell)
- lambda function lambda
- built-in function
@@ -63,3 +91,5 @@
variable within an upper namespace it should
infact change the environment even if the
function exited
(progn (setq x 4)(* x 2))