Closed Wilfred closed 7 years ago
Given this:
;; Inputs (one per line): '(a b c d) ;; Desired output: 'b
it would be nice to suggest (nth 1 '(a b c d)), but this requires us passing extra values to functions. 0, 1 and 2 are the obvious candidates.
(nth 1 '(a b c d))
This will also help with discovering (-partition 2 some-list).
(-partition 2 some-list)
Given this:
it would be nice to suggest
(nth 1 '(a b c d))
, but this requires us passing extra values to functions. 0, 1 and 2 are the obvious candidates.This will also help with discovering
(-partition 2 some-list)
.