Timeline for 2048-like array shift
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:39 | history | edited | CommunityBot |
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
|
|
Oct 6, 2016 at 11:31 | comment | added | Dada |
@TonHospel indeed, but usually when an operator uses $_ as default argument, the doc specifies a prototype with no parameters (like print or lenght ...). Or maybe that's just an wrong impression I have.
|
|
Oct 6, 2016 at 8:51 | comment | added | Ton Hospel |
A LIST can be empty...
|
|
Oct 6, 2016 at 8:01 | history | edited | Dada | CC BY-SA 3.0 |
added 29 characters in body
|
Oct 6, 2016 at 7:59 | comment | added | Dada |
@TonHospel thanks. Indeed, the doc of reverse looks like reverse can't be called without argument (well the examples show it can be, but there is only one prototype : reverse LIST ), so I forgot about $_ being the default argument ;)
|
|
Oct 6, 2016 at 7:33 | history | edited | Ton Hospel | CC BY-SA 3.0 |
Also apply the `\b` fix to the run example
|
Oct 6, 2016 at 7:32 | comment | added | Ton Hospel |
Nice sexeger. Notice you can just leave out the ($_)
|
|
Oct 6, 2016 at 4:37 | comment | added | Cyoce |
reverse reverse seems a bit lengthy. I'm no expert in Perl, but is there a way you can make a shortcut to reverse (if nothing else, [ab]using eval )?
|
|
Oct 5, 2016 at 22:08 | history | edited | Dada | CC BY-SA 3.0 |
deleted 139 characters in body
|
Oct 5, 2016 at 21:41 | history | edited | Dada | CC BY-SA 3.0 |
added 211 characters in body
|
Oct 5, 2016 at 20:43 | history | answered | Dada | CC BY-SA 3.0 |