« first day (690 days earlier)      last day (4167 days later) » 

8:38 AM
Hey everyone! I need some help with GolfScript. How would you translate something like this into golfscript:
(1..5).map{|x| (1..5).map{|y| x * y}}
The output is [[1, 2, 3, 4, 5], [2, 4, 6, 8, 10], [3, 6, 9, 12, 15], ...]
 
 
3 hours later…
11:54 AM
6,(; .{1${1$*}%\;}%
Might not be the shortest, but you get the point
@Dogbert ping
 
 
3 hours later…
2:55 PM
@copy, thank you very much!
 
@Dogbert 6,1> has the same effect as 6,(;
somehow seems cleaner to select the range you want, rather than poping off the first item, and then discarding it. But I think that's about as concise as it can get.
 
You're welcome :-)
 

« first day (690 days earlier)      last day (4167 days later) »