BlandOmlette=:'~!+#$%^&*()_' ((([: $ [) ([: ? $) [: $ ])~ { [) ]
No salt (@) or pepper (&)
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dan Bron
Sent: Wednesday, January 22, 2014 1:32 PM
To: [email protected]
Subject: Re: [Jprogramming] A SAD STORY
Ben Gorte wrote:
> If you allow me:
> Drop =: ({&'~!@#$%^&*()_' @ ? @ (12&+) @ 0:)"0
Oh no no sir, if you'll allow me:
Omelette =: '~!@#$%^&*()_'&(?@$&$~ { [)
This version has advantages and disadvantages:
Drop =: ({&'~!@#$%^&*()_' @ ? @ (12&+) @ 0:)"0
Omelette =: '~!@#$%^&*()_'&(?@$&$~ { [)
A_FEW =: 100 100 100 $ 0
ts =: 6!:2 , 7!:2@:]
]TS=:100 ts&> Omelette`Drop ,L:0 ' A_FEW'
0.0242501 1.67796e7
0.513123 1.05114e6
NB. Lower is better: 1=fastest or leanest;2=2x slower/fatter, etc
(,.' '&,.)&:>/<@:>"1|:a:`Time`Space,Omelette`Drop,.0j0":&.>(%"1<./)TS
Time Space
Omelette 1 16
Drop 21 1
So it looks like you're a harried short-order cook, you'll want to make
omelettes (so long as you've got the counter space for it - 16x more than
the carton the eggs came in). But if you're a bored teenager just looking
to kill time, dropping eggs is the way to go [1] .
-Dan
[1]
http://www.tmz.com/2014/01/09/justin-bieber-neighbor-egging-house-sheriff-de
puties/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm