I don't think that it works like you would expect.

   (p , 0 $ p =: ]) 'erling'
erling
   p
]
   (p , 0 $ 'p' =: ]) 'erling'
erling
   p
]
   (p , 0 $ 'p' =: ])
p , 0 $ ]
   4 !:0 <'p'
3

Turns out that "p" is a verb who's value is "]", as you would expect. And
of course the result of the expression is the right argument.

   (p , 1 $ p =: ]) 'erling'
erlinge

But as you can see the assignment disappears. The test above shows that
both "p"s select the right argument.

On Sat, Oct 7, 2017 at 3:31 PM, Erling Hellenäs <[email protected]>
wrote:

> Hi all !
>
> I was trying to understand how thecopula verbs =..and=:: works in tacit
> expressions.
>
>    (p , 0 $ 'p' =.. ]) 'erling'
> |value error: p
> |       (p,0$'p'=..])'erling'
>    ('p' =.. ]) 'erling'
> erling
>
>    (p , 0 $ 'p' =.. ]) 'erling'
> erling
>    (p , 0 $ 'p' =.. ]) 'fredrik'
> erling
>    (p , 0 $ 'p' =.. ]) 'fredrik'
> fredrik
>    (p , 0 $ 'p' =.. ])
> 'fredrik' , 0 $ 'p' =.. ]
>
> I wonder if it is really useful in tacit expressions, and in that case,
> how it can be used.
> It is only used to set variables outside of the expressions, not to use
> the variables in the expressions?
> Useful in for example debugging?
>
> This is from the documentation:
> "The copula verbs =..and=:: are similar to their corresponding copulas but
> are syntactically dyadic verbs and may be embedded in tacit expressions."
>
> Cheers,
>
> Erling Hellenäs
>
>
>
> On 2017-10-07 16:09, Erling Hellenäs wrote:
>
>> Hi all!
>>
>> We are micro-blogging about Jx here. https://twitter.com/erlheldata
>>
>> Cheers,
>>
>> Erling Hellenäs
>>
>> On 2017-10-06 17:01, 'Mike Day' via Programming wrote:
>>
>>> Thanks, BIll
>>> I probably knew that route sometime in the past.
>>>
>>> Just in case someone else needs to know,  this is what I've actually
>>> done.  This is for Windows 10,  as I said earlier:-
>>>
>>> - "create shortcut" from each of the "shortcuts" seen in the Windows
>>>    "desktop" (as installed for jqt and jconsole)
>>> - rename each according to taste
>>> - edit the "target" shown in their "properties" dialogue,
>>>    according to your suggestion,  but with full pathname for
>>>    "jx.dll",
>>>       in my case: C:\d\j806\bin\jqt.exe -lib C:\d\j806\bin\jx.dll
>>>
>>> Pace Thomas Costigliola,  I had tried duplicating the whole installation,
>>> but that's rather greedy for space!
>>>
>>> Thanks to both,
>>>
>>> Mike
>>>
>>> PS - should debug work under JQt with jx.dll ?
>>> CTRL-K invokes a domain error for me:
>>> |domain error: script
>>>
>>> | FRINGEBORDER=: (<0 0 0 1)"0 FRINGECOLOR
>>>
>>> |[-4849] c:\d\j806\addons\debug\dissect\dissect.ijs
>>>
>>>
>>> clicking instead on Run/Debug results in
>>>
>>> |value error: jdebug_run
>>>
>>> | jdebug_run 0
>>>
>>>
>>> M
>>>
>>>
>>>
>>> On 06/10/2017 03:46, bill lam wrote:
>>>
>>>> Rename the jx j.dll as jx.dll, then type
>>>> jconsole -lib jx.dll
>>>> jqt -lib jx.dll
>>>>
>>>> Or rename the official j.dll depending which one will become your
>>>> favorite.
>>>>
>>>> On Oct 5, 2017 5:29 PM, "'Mike Day' via Programming" <
>>>> [email protected]> wrote:
>>>>
>>>> OK - I've got the Jx 1.1 j.dll and the various accessory information,
>>>>> but
>>>>> suppose I want
>>>>>
>>>>> to try jx and compare it with the "orthodox" J806?
>>>>>
>>>>> Do you advocate setting up a complete "JX" installation parallel with
>>>>> J806
>>>>> (or J805 ...),
>>>>>
>>>>> or can it somehow share those orthodox folder/s,  given that j.dll is
>>>>> the
>>>>> only difference?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Mike
>>>>>
>>>>> On 30/09/2017 22:27, Jose Mario Quintana wrote:
>>>>>
>>>>> Jx 1.1 Release
>>>>>>
>>>>>> A Jx v1.1 Extensions Guide, a J/Jx Cheatsheet, a Jx Assertions script
>>>>>> together with links to a Windows 64 bit dll, a Unix 64 bit so binaries
>>>>>> (without avx support) and the patch corresponding to the J806 source
>>>>>> (beta-6) can be found at the link [0].
>>>>>>
>>>>>> Summary
>>>>>>
>>>>>> - Primitives
>>>>>>       Added     =.. =:: $:: [. ]. ]: ".. `. &:.(*) ?:(*) i.. O.
>>>>>>       Extended  ~ $.
>>>>>>       Modified  " (*)
>>>>>>
>>>>>> - Foreign
>>>>>>       Added     104!:5 Unnamed Execution  102!:0/1 In-place
>>>>>> Amend/Append
>>>>>> (*)
>>>>>>
>>>>>> - Trains
>>>>>>       a v    Added
>>>>>>       a a    Extended
>>>>>>       c a    Resurrected and extended (*)
>>>>>>       a c a  Resurrected and extended (*)
>>>>>>
>>>>>> - Spelling
>>>>>>       Names with Unicode characters
>>>>>>
>>>>>> (*) New Jx 1.1 feature
>>>>>>
>>>>>> This release introduces a modified primitive (") and, in theory, for
>>>>>> the
>>>>>> first time an incompatibility vs the official J counterpart (J806
>>>>>> beta-6)
>>>>>> ;
>>>>>> however, in practice, it is highly unlikely to break any existent
>>>>>> code and
>>>>>> doubters have an opportunity to test their code.
>>>>>>
>>>>>> This is a simple 1-decade-old example [1],
>>>>>>
>>>>>>      ]`|."1 i.5 6
>>>>>>    0  1  2  3  4  5
>>>>>> 11 10  9  8  7  6
>>>>>> 12 13 14 15 16 17
>>>>>> 23 22 21 20 19 18
>>>>>> 24 25 26 27 28 29
>>>>>>
>>>>>> See also the threads [2, 3] for recent discussions.
>>>>>>
>>>>>> The rank of the verb ?: has been changed to 0 0 0 to make it easier to
>>>>>> use.
>>>>>>
>>>>>> Three venerable facilities are released:
>>>>>>
>>>>>> - The conjunction (&:.), for the motivation, see the post [4] (see
>>>>>> also
>>>>>> the
>>>>>> post [5] both, its reference and the embedded discussion for similar
>>>>>> more
>>>>>> recent ideas).
>>>>>>
>>>>>> - 102!:0/1 In-place Amend/Append, be very careful (see [6]); if you
>>>>>> do not
>>>>>> know what to expect, play with their corresponding models instead.
>>>>>>
>>>>>> PS.  There are a couple of other goodies which will be documented
>>>>>> later.
>>>>>>
>>>>>>
>>>>>> References
>>>>>>
>>>>>> [0] Jx 1.1 Release
>>>>>>       http://www.2bestsystems.com/foundation/j/jx1.1
>>>>>>
>>>>>> [1] [Jprogramming] zig-zag order  Oleg Kobchenko
>>>>>> http://www.jsoftware.com/pipermail/programming/2006-Novembe
>>>>>> r/004188.htm
>>>>>>
>>>>>> [2] [Jprogramming] How m"n shoulda been defined  Henry Rich
>>>>>> http://www.jsoftware.com/pipermail/programming/2015-August/
>>>>>> 042512.html
>>>>>>
>>>>>> [3] [Jprogramming] Jx version 1.0 release  Henry Rich
>>>>>> http://www.jsoftware.com/pipermail/programming/2017-August/
>>>>>> 048124.html
>>>>>>
>>>>>> [4] [Jforum] Wasted intermediate values  Jose Mario Quintana
>>>>>> http://www.jsoftware.com/pipermail/general/2003-March/014488.html
>>>>>>
>>>>>> [5] [Jprogramming] Fold/reduce with initial value?  R.E. Boss
>>>>>> http://www.jsoftware.com/pipermail/programming/2015-Februar
>>>>>> y/041015.html
>>>>>>
>>>>>> [6] [Jprogramming] Tacit J and indexed replacement  Jose Mario
>>>>>> Quintana
>>>>>> http://www.jsoftware.com/pipermail/programming/2014-July/038515.html
>>>>>> ----------------------------------------------------------------------
>>>>>>
>>>>>> For information about J forums see http://www.jsoftware.com/forum
>>>>>> s.htm
>>>>>>
>>>>>>
>>>>> ---
>>>>> This email has been checked for viruses by Avast antivirus software.
>>>>> https://www.avast.com/antivirus
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>> 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
>>
>
>
> ----------------------------------------------------------------------
> 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