fork download
  1. ;; These two expressions are exactly the same.
  2. (println (+ 1 2 3))
  3.  
  4. (println (apply + [1 2 3]))
  5.  
  6. ; ===============================
  7.  
  8. (println (apply hash-map [:a 1 :b 2 :c 3]))
  9.  
  10. ;; This is the same as:
  11. (println (hash-map :a 1 :b 2 :c 3))
Success #stdin #stdout 1.65s 335552KB
stdin
Standard input is empty
stdout
6
6
{:c 3, :b 2, :a 1}
{:c 3, :b 2, :a 1}