Re: [Jprogramming] Local Functions as Arguments to User Conjunctions

2012-05-04 Thread Raul Miller
Named verbs are passed by name, to explicit conjunctions and adverbs. You can use f. to eliminate names from the definition. If you only want to eliminate the name 'f' instead of all names, you can use: ((5!:1<'f')5!:0) as the argument to your conjunction. This will extract f's definition a

[Jprogramming] Local Functions as Arguments to User Conjunctions

2012-05-04 Thread Paul Jackson
I've been rewriting some of my APL tools in J. I wrote a Conjunction to provide keyword in context. Its arguments are: [x=. defaults to Width] m=. 'look' v=. FindFunction y=. 'text to look in' While writing updates to my tools, I decided to provide a constant function that returned where two recen