Closed RalfNorthman closed 4 years ago
The list doesn't pop from the front; it pops from the list head. See discussion in https://github.com/exercism/rust/issues/834 and here.
Oh, my mistake, I come from a tradition (e.g. R, elm) where head is at the front and tail is at the back.
Doesn't that sound more intuitive than vice versa?
Yes. Unfortunately, saying that the head is at the front has its own set of semantic issues.
Ideally we'd say "top" instead of "head", because we want stack semantics, but that's even more confusing for students who haven't heard of stacks.
On Mon, Jul 27, 2020, 19:49 Ralf Northman notifications@github.com wrote:
Oh, my mistake, I come from a tradition (e.g. R, elm) where head is at the front and tail is at the back.
Doesn't that sound more intuitive than vice versa?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/exercism/rust/issues/960#issuecomment-664543755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3V4TQEEUWOU6EKQ5IHR2DR5W4ZJANCNFSM4PIO7K7Q .
Maybe I'm missing something, but since the list pops from the front shouldn't
Some("1")
be first instead of last (and so on)?Test as it is written now: