not adding much but, '2+2' ,&". '1+1'
4 2 On Tuesday, February 18, 2020, 12:30:27 p.m. EST, Jimmy Gauvin <[email protected]> wrote: Another variant : exec =: 4 : 0 : ('Left';x;". x),:'Right';y;". y ) '1+1' exec '2+2' ┌─────┬───┬─┐ │Left │1+1│2│ ├─────┼───┼─┤ │Right│2+2│4│ └─────┴───┴─┘ On Tue, Feb 18, 2020 at 12:27 PM 'robert therriault' via Programming < [email protected]> wrote: > Hi Pete, > > Are you looking for ". (Do) > https://code.jsoftware.com/wiki/Vocabulary/quotedot > > ".'1 + 1' > 2 > FUNCTION=: 4 : 0 > smoutput x NB. output x string > smoutput y NB. output y string > x +&". y NB. Using + as the dyadic verb placeholder, equivalent to (". > x) + ". y > ) > '1+1' FUNCTION '2+2' > 1+1 > 2+2 > 6 > > Cheers, bob > > > On Feb 18, 2020, at 09:10, PMA <[email protected]> wrote: > > > > This question must be too clueless to ask, > > but two hours with NuVoc leaves me still > > wondering -- > > > > I need to write a function invocation with > > its numeric x and y each in quotes as TEXT: > > > > '1+1' FUNCTION '2+2' > > > > I want the function then, after displaying > > x and y, to remove their quotes and execute > > their innards. > > > > What (a primitive, I assume!) will convert > > each quote to an executable expression? > > > > Thanks in advance. > > Sorry to test your patience! > > Pete > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
