in reply to Golf: overtone calculator
sort{$a-$b}keys%{{map{map{1e-3*int"@_"*1e3*$x/$_,0}1..($x=$_)}1..pop}}It had promise, I swear! I was sure that the old "keys on temporary hash" trick would work, but alas, denied. I futzed with the clever sprintf() replacement, and could not find any slack. Very elegant.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Golf: overtone calculator
by locked_user mtve (Deacon) on Sep 03, 2002 at 13:15 UTC | |
|
Re: Re: Golf: overtone calculator
by Django (Pilgrim) on Sep 02, 2002 at 10:32 UTC | |
by tadman (Prior) on Sep 02, 2002 at 13:26 UTC | |
by theorbtwo (Prior) on Sep 02, 2002 at 23:55 UTC | |
by BrowserUk (Patriarch) on Sep 03, 2002 at 00:17 UTC | |
by tadman (Prior) on Sep 03, 2002 at 05:35 UTC |