Professional Documents
Culture Documents
Clojure - Primero Parte
Clojure - Primero Parte
LISP
(def items (sorted-map "z" "1" "b" "2" "a" "3"))(println items)
{a 3, b 2, z 1}
Which of the following command is used to write a single String Sequence at a time
we use?
clojure.core.spit
Which modification operation is used frequently with atom to update its value?
swap!
Which macro is used to define a task without having to execute it or requiring the
result immediately?
delays
Which macro is used to define a task and place it in another thread, when the
result is not required immediately?
future
Which of the following flow control statements is used to iterate over a sequence?
doseq
What is the name of the plugin used to run Clojure on intelliJ IDE?
Leiningen -- wrong
Pure functions give the same result for the same argument values.
True
Which function is used to display all the elements except the first element in a
sequence?
rest