#21
Nth Element
 

Difficulty:Easy
Topics:seqs core-functions


Write a function which returns the Nth element from a sequence.
test not run
(= (__ '(4 5 6 7) 2) 6)
test not run
(= (__ [:a :b :c] 0) :a)
test not run
(= (__ [1 2 3 4] 1) 2)
test not run
(= (__ '([1 2] [3 4] [5 6]) 2) [5 6])
Special Restrictions
  • nth


  • Code which fills in the blank: