Thank you, all the answers helped. I had twigged to the fact that by J
precedence rules my first verb was nonsensical, but that really didn't
invalidate the exercise. :-)

I was using these examples specifically because I was experimenting with
filters. I like the simplicity of Haskell's

filter pred list

or

[ f x | x <- list, pred x ]

and I am trying to take things that I do there and express them in J. For
that matter, I am trying to take a lot of the things that I do in Haskell
and translate them to J. :-)

Just out of curiosity, without asking for a solution, would experts here
consider both discrete convolution and 2-D Bresenham's algorithm to be 1-3
line J programs?

AHS
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to