Open
Description
I have a question regarding the following koan:
"You can use a list like a stack to get the first element"
(= :a (peek '(:a :b :c :d :e)))
I believe this should be a queue instead of a stack, since a stack is last in first out. Since '(:a :b :c :d :e) the last element is :e this should be returned. A queue is first in first out so we pop the first element put in which would be :a. Please correct me if i'm wrong.
Metadata
Metadata
Assignees
Labels
No labels