fixups
This commit is contained in:
parent
a5a38d89a3
commit
287dba62b6
15
README.md
15
README.md
|
@ -2,14 +2,15 @@
|
||||||
|
|
||||||
*inspired by Gary Bernhardt's [original "Wat" talk](https://www.destroyallsoftware.com/talks/wat)*
|
*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
|
**This repository is an ongoing work in progress, and is intended to be a community
|
||||||
think one should be removed, please create a pull request!**
|
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
|
# List of wat's
|
||||||
|
|
||||||
- Numbers are mutable
|
- Numbers are mutable
|
||||||
|
|
||||||
```racket
|
```scheme
|
||||||
Welcome to Racket v7.5.0.900.
|
Welcome to Racket v7.5.0.900.
|
||||||
> (immutable? 5)
|
> (immutable? 5)
|
||||||
#f
|
#f
|
||||||
|
@ -17,7 +18,7 @@ Welcome to Racket v7.5.0.900.
|
||||||
|
|
||||||
- Unquote can be weird:
|
- Unquote can be weird:
|
||||||
|
|
||||||
```racket
|
```scheme
|
||||||
Welcome to Racket v7.5.0.900.
|
Welcome to Racket v7.5.0.900.
|
||||||
> `(4 . ,(+ 1 2))
|
> `(4 . ,(+ 1 2))
|
||||||
(4 . 3)
|
(4 . 3)
|
||||||
|
@ -27,7 +28,7 @@ Welcome to Racket v7.5.0.900.
|
||||||
|
|
||||||
- Argument order for collections:
|
- Argument order for collections:
|
||||||
|
|
||||||
```racket
|
```scheme
|
||||||
Welcome to Racket v7.5.0.900.
|
Welcome to Racket v7.5.0.900.
|
||||||
> (member 'x (list 'x 'y))
|
> (member 'x (list 'x 'y))
|
||||||
#t
|
#t
|
||||||
|
@ -39,7 +40,7 @@ Welcome to Racket v7.5.0.900.
|
||||||
|
|
||||||
- `gensym` is special
|
- `gensym` is special
|
||||||
|
|
||||||
```racket
|
```scheme
|
||||||
Welcome to Racket v7.5.0.900.
|
Welcome to Racket v7.5.0.900.
|
||||||
> (define x (gensym))
|
> (define x (gensym))
|
||||||
> x
|
> x
|
||||||
|
@ -50,7 +51,7 @@ Welcome to Racket v7.5.0.900.
|
||||||
|
|
||||||
- `hash-map` doesn't return a hash
|
- `hash-map` doesn't return a hash
|
||||||
|
|
||||||
```racket
|
```scheme
|
||||||
Welcome to Racket v7.5.0.900.
|
Welcome to Racket v7.5.0.900.
|
||||||
> (map list '(1 2 3))
|
> (map list '(1 2 3))
|
||||||
'((1) (2) (3))
|
'((1) (2) (3))
|
||||||
|
|
Loading…
Reference in New Issue