Skip to main content

Timeline for Array alignment addition

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Dec 16, 2016 at 19:34 history edited Xanderhall CC BY-SA 3.0
Improved solution
Dec 16, 2016 at 19:22 comment added Xanderhall Thanks for the suggestions @Titus, I just kinda threw this together cause I wanted to beat the other PHP answers :P
Dec 16, 2016 at 18:53 comment added Zgarb @Titus Anonymous functions are allowed by default as per consensus on Meta.
Dec 16, 2016 at 17:10 comment added Titus But I think anonymous functions are considered snippets and hence are no valid answers.
Dec 16, 2016 at 16:30 comment added Titus Shouldn´t that be $b[$i%$y]? You can save 3 bytes by moving $x=count($a) to the first usage of $x; same for $y=count($b) and one byte with bitwise or in the while condition
Dec 16, 2016 at 15:43 history answered Xanderhall CC BY-SA 3.0