open:shorthand

shorthand

#(exp) is shorthand for a function with one expression in the body

#(print "hello") ; (fn [] (print "hello"))

#(print %2 %1) ; (fn [a b] (print b a))

#{value} is shorthand for a hash set

#{5 2 "hi" 5}
(has-set 5 2 "hi" 5)

#' is shorthand for the var special form

#'x. ; (var x)

^symbol is shorthand for ^{:tag symbol}

^foo   ; ^{:tag foo}

^keyword is shorthand for ^{keyword true}

^:foo   ; ^{:foo true}

  • open/shorthand.txt
  • Last modified: 2024/10/05 06:15
  • by 127.0.0.1