There's " https://code.jsoftware.com/wiki/Vocabulary/quotem
Common use #2, to make a constant verb out of a noun.

   (_."_)`2:`3:@.] i:2
2 3 _. 2 3


On 2021-02-21 06:28, Thomas Bulka wrote:
Hello everyone,

here's what I want to do: I want to use @. on a gerund like this:

interesting_verb =: f`g`2:`3:@.h

h, obviously, is a verb which generates an integer between 0 and 3.
However - I'd like to have a case in which _. is returned on some
inputs by my verb. While it is possible to handle _ as the constant
function _:, this does not seem to work with _..

Is there any way to handle this case in a tacit definition with a
gerund or does it have to be handled explicitly? Or are there better
ways I did not think of?

Thanks for your help and kind regards,

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

Reply via email to