Welcome, I'm happy to see you here! Feel free to pick a function and add a happy example, the more the merrier!
(math/acos 0.3 )
1.2661036727795
(get default-peg-grammar :a )
# => '(range "az" "AZ") (map dictionary? [ 'ab :ab "ab" @"ab" [97 98 ] @[97 98 ] {0 97 1 98 } @{0 97 1 98 } ])
# => @[ false false false false false false true true ]
(map struct? [ 'ab :ab "ab" @"ab" [97 98 ] @[97 98 ] {0 97 1 98 } @{0 97 1 98 } ])
# => @[ false false false false false false true false ]
(map table? [ 'ab :ab "ab" @"ab" [97 98 ] @[97 98 ] {0 97 1 98 } @{0 97 1 98 } ])
# => @[ false false false false false false false true ] (flatten-into @[1 2 3 ] @[[4 5 6 ] @[7 8 9 ] @[10 11 12 ]]) # => @[1 2 3 4 5 6 7 8 9 10 11 12]
(max 1 2 3 ) # => 3
(max (splice [1 2 3 ])) # => 3
(max ;[1 2 3 ]) # => 3
(apply max [1 2 3 ]) # => 3
(/ 2 )
# => 0.5
(drop 1 "smile" )
# => "mile"
((juxt + - * / ) ;[1 2 3 ])
# => '(6 -4 6 0.166667) (let [x false ]
(var y 0 )
(unless x
(++ y )
(++ y ))
y )
# => 2 (string/ascii-upper "hello" ) # => "HELLO" (scan-number "123" ) # => 123
(scan-number "f" ) # => nil
(scan-number 123 ) # =>
# error: bad slot #0, expected string|symbol|keyword|buffer, got 123
# in scan-number
# in _thunk [repl] (tailcall) on line 1, column 1 (forv i 0 10
(print "hello" ))
# => hello
# => hello
# => hello
# => hello
# => hello
# => hello
# => hello
# => hello
# => hello
# => hello
# => nil
(array/pop @[]) # => nil # build own map-indexed with map
(defn map-indexed [f ds ]
(map f (range 0 (length ds )) ds ))
(map-indexed (fn [i v ] [i v ] ) ["a" "b" "c" "d" ])
# => @[(0 "a") (1 "b") (2 "c") (3 "d")] (bnot 255 ) # => -256