pic1=: '* ' {~ i. </ |@i:
(picture -: pic1)"0 i.10
1 1 1 1 1 1 1 1 1 1
On Sat, Feb 23, 2013 at 10:28 AM, David Ward Lambert <[email protected]
> wrote:
> The goal was to draw a particular figure in less than 12 lines of
> python. My j solution:
>
> NB. Use picture as monad with integral argument
> picture =: {&'* '@:(i. (< |)"0/ i:)
>
> Corresponding "phony j" implemented in python,
> Post 4:
>
> http://forums.devshed.com/python-programming-11/need-help-with-this-problem-python-3-2-1-1t-939983.html
>
>
> Some of the lines are long for this email system.
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm