Alex Gian <[email protected]> writes:

> Yes, great, the hook works as expected, and as per Chris's example
> Where I'm stuck is in making the filter verb _itself_
>   filter =: (#~ [)
> doesn't work, neither
>   filter =: (#~ [) ]

Part of the problem here is that filter is not a verb; it's an *adverb*.

I'm just a beginner myself, so I'm not sure that this can't be done
tacitly, but an explicit version is:

   filter =: 1 : '#~ x'

I hope that helps.

Regards,
Johann

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

Reply via email to