Timeline for answer to Print the N-bonacci sequence by nimi
Current License: CC BY-SA 3.0
Post Revisions
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 31, 2016 at 21:30 | comment | added | nimi | @proudhaskeller: yes, exactly! | |
| Jan 31, 2016 at 21:26 | comment | added | proud haskeller |
Oh, I get it. That's a nifty way to replace ++[] by :!
|
|
| Jan 31, 2016 at 21:19 | comment | added | nimi |
@proudhaskeller: it doesn't matter. we keep the last n elements int the list. There's no difference between removing from the end and adding to the front and the other way around, i.e. removing from the front and adding to the end, because the initial list is made up of only 1s.
|
|
| Jan 31, 2016 at 20:49 | comment | added | proud haskeller |
Shouldn't that be tail l instead of init l?
|
|
| Jan 29, 2016 at 22:05 | history | answered | nimi | CC BY-SA 3.0 |