You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
||2 years ago|
|README.md||2 years ago|
inspired by Gary Bernhardt's original "Wat" talk
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
Welcome to Racket v184.108.40.2060. > (immutable? 5) #f
- Unquote can be weird:
Welcome to Racket v220.127.116.110. > `(4 . ,(+ 1 2)) (4 . 3) > '(4 . ,(+ 1 2)) '(4 unquote (+ 1 2))
- Argument order for collections:
Welcome to Racket v18.104.22.1680. > (member 'x (list 'x 'y)) #t > (vector-member 'x (vector 'x 'y)) #t > (set-member? (set 'x 'y) 'x) #t
Welcome to Racket v22.214.171.1240. > (define x (gensym)) > x 'g78 > (eq? x 'g78) #f
hash-mapdoesn't return a hash
Welcome to Racket v126.96.36.1990. > (map list '(1 2 3)) '((1) (2) (3)) > (vector-map list #(1 2 3)) '#((1) (2) (3)) > (hash-map (hash 'x 1 'y 2) list) '((x 1) (y 2)) ; that's not a hash map...
- TODO more