Timeline for answer to Iterated Divisor Twist by dcsohl
Current License: CC BY-SA 3.0
Post Revisions
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 19, 2015 at 18:16 | comment | added | Alex A. | My pleasure, glad I could help. Nice solution. | |
| Feb 19, 2015 at 17:53 | comment | added | Alex A. | I only knew that because I recently looked it up after seeing it in someone else's golf on another question. I've never used Octave and it's been years since I've used Matlab. My guess is that there aren't all that many active Octave users on PPCG, but I could be wrong. | |
| Feb 19, 2015 at 16:44 | history | edited | dcsohl | CC BY-SA 3.0 |
Use "end" rather than "endfor" and "endfunction"
|
| Feb 19, 2015 at 16:43 | comment | added | dcsohl | Hey, you are right! Not how I learned the language and never realized it could be done. Why are you the first one to point this out after I've done multiple golfs with it? | |
| Feb 18, 2015 at 21:10 | comment | added | Alex A. |
It's my understanding that Octave can end blocks with just end rather than endfor and endfunction. That would save you 11 bytes.
|
|
| Feb 18, 2015 at 20:57 | history | answered | dcsohl | CC BY-SA 3.0 |