JanetDocsPlaygroundI'm feeling luckyGitHub sign in
(put @{:a 4 :b 5} :c 6 ) # => @{:a 4 :b 5 :c 6} (put @{:a 4 :b 5} :b nil ) # => @{:a 4} (put @{:a 4 :b 5} :z nil ) # => @{:a 4 :b 5} (put @[:a :b :c] 0 :z ) # => @[:z :b :c] (put @[:a :b :c] 1 nil ) # => @[:a nil :c] (put @[:a :b :c] 5 :d ) # => @[:a :b :c nil nil :d] (put @"hello" 0 "z" ) # error: can only put integers in buffers (defn ord [ch] (first (string/bytes ch))) (ord "z") # => 122 (put @"hello" 0 122 ) # => @"zello" (put @"hello" 0 (ord "z") ) # => @"zello" (put @"hello" 8 (ord "y") ) # => @"hello\0\0\0y"