#341
Merry go round a bit
Difficulty: | Elementary |
Topics: | List Vector |
Mission: Bikin function untuk "rotate" elemen-elemen dalam list/vector. Artinya, elemen terakhir menjadi elemen pertama.
(= (__ [1 2 3 4 5]) [5 1 2 3 4]) | |
(= (__ ["Clojure" "Scala" "Haskell" "Elixir"]) ["Elixir" "Clojure" "Scala" "Haskell"]) | |
(= (__ [true false true]) [true true false]) |