bakpakin on master
Fix #682 - Don't hardcode size … (compare)
ev/sleep
call makes it so that the netrepl gets a chance to do its thing :)
recv
to block, just not indefinitely :)
(= @[1 2] @[1 2]) #=> false
=
there's deep=
which works with those. not sure if there's something similar for compare>
put-in
, swap-remove
, index-based put/get/remove, and more
Regarding testing for equality, I really like Janet's consistency here: that all immutables compare by value, and all mutables compare by pointer (or id):
# All of these (immutables) evaluate to `true`:
(= nil nil)
(= false false)
(= 1 1)
(= :a :a)
(= 'a 'a)
(= "a" "a") # string
(= [1 2] [1 2]) # tuple
(= {:a 1} {:a 1}) # struct
# ...and all of these (mutables) evaluate to `false`:
(= @"a" @"a") # buffer
(= @[1 2] @[1 2]) # array
(= @{:a 1} @{:a 1}) # table
(please let me know if I have any of that terminology wrong)