Latte and tumbler are easily claimed with straightforward
' *'{~#:32 32 80 136 260 1539 260 136 80 32 32 NB. 46 characters
How can we compress the integer vector into less than 11 characters?
Raul has previously shown amazing tricks. With unicode, if U stands for
a character vector that probably won't pass well
through email but can be typed gives 25 characters. Absolute value and
minimum crossed my mind as part of a solution. I didn't think to use i:
. 18 characters---wow. Nice work to find the function to graph Marshall.
U =: 4 u:32 32 80 136 260 1539 260 136 80 32 32
' *'{~#:3 u:U NB. with quotes, 25 characters
#U
11
>Date: Mon, 28 Oct 2013 22:30:02 -0400
>To: [email protected]
>Subject: Re: [Jprogramming] code golf
>Message-ID: <[email protected]>
>
>Here's 18:
>
> '_*'{~4=+/~4<.|i:5
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm