Permalink
Fetching contributors…
Cannot retrieve contributors at this time
|
; P02 Find the last but one element of a list. |
|
|
|
; Built-ins |
|
(defn f1 [l] |
|
(last (butlast l))) |
|
|
|
; Using index |
|
(defn f2 [l] |
|
(nth (reverse l) 1)) |
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.