This commit is contained in:
Milo 2020-01-28 22:42:24 -05:00
parent a5a38d89a3
commit 287dba62b6
1 changed files with 8 additions and 7 deletions

View File

@ -2,14 +2,15 @@
*inspired by Gary Bernhardt's [original "Wat" talk](https://www.destroyallsoftware.com/talks/wat)*
**This repository is a work in progress. If you have anything new wat's to contribute, or
think one should be removed, please create a pull request!**
**This repository is an ongoing work in progress, and is intended to be a community
effort. If you have anything new wat's to contribute, or think one should be removed,
please create a pull request!**
# List of wat's
- Numbers are mutable
```racket
```scheme
Welcome to Racket v7.5.0.900.
> (immutable? 5)
#f
@ -17,7 +18,7 @@ Welcome to Racket v7.5.0.900.
- Unquote can be weird:
```racket
```scheme
Welcome to Racket v7.5.0.900.
> `(4 . ,(+ 1 2))
(4 . 3)
@ -27,7 +28,7 @@ Welcome to Racket v7.5.0.900.
- Argument order for collections:
```racket
```scheme
Welcome to Racket v7.5.0.900.
> (member 'x (list 'x 'y))
#t
@ -39,7 +40,7 @@ Welcome to Racket v7.5.0.900.
- `gensym` is special
```racket
```scheme
Welcome to Racket v7.5.0.900.
> (define x (gensym))
> x
@ -50,7 +51,7 @@ Welcome to Racket v7.5.0.900.
- `hash-map` doesn't return a hash
```racket
```scheme
Welcome to Racket v7.5.0.900.
> (map list '(1 2 3))
'((1) (2) (3))