Re: [Jprogramming] _. WAS A new bind conjunction WAS: Dictionaries

2022-02-08 Thread 'Pascal Jasmin' via Programming
'' -: i.0  is cannonical null in J.  It can only be included in list of strings or boxes (as a: -: <'')   4 , (i. 0 0), 3 (blank) lr 4 , (i. 0 0), 3 2 0$00 4 , (i. 0 1), 3 4 3 4 , (i. 0 ), 3 4 3    4 2 , (i. 0 ), ,.3 4 2 0 0 3 0 On Tuesday, February 8, 2022, 06:16:10 p.m. EST, Jan-

Re: [Jprogramming] _. WAS A new bind conjunction WAS: Dictionaries

2022-02-08 Thread Hauke Rehr
Just for the sake of pointing out what my idea was, it would work like this (answers embedded): Am 09.02.22 um 00:02 schrieb Jan-Pieter Jacobs: The biggest problem I see is finding a good use for such null value. In many cases where a null value would make sense, J/APL found a different way of m

Re: [Jprogramming] _. WAS A new bind conjunction WAS: Dictionaries

2022-02-08 Thread Jan-Pieter Jacobs
The biggest problem I see is finding a good use for such null value. In many cases where a null value would make sense, J/APL found a different way of making something useful out of what would otherwise be an error, e.g. 'abcX' {~ 0 1 2 i. 0 2 1 0 3 0 100 acbaXaX i. could return null if not foun

Re: [Jprogramming] _. WAS A new bind conjunction WAS: Dictionaries

2022-02-08 Thread Henry Rich
Don't worry - I don't expect we will ever find a spec that will make _. fit easily into the primitives.  But it doesn't hurt to think about it. 128!:5 will also check for NaN. Henry Rich On 2/8/2022 3:30 PM, Clifford Reiter wrote: I am not cheering on work on _. but they can be found: x=: 1

Re: [Jprogramming] _. WAS A new bind conjunction WAS: Dictionaries

2022-02-08 Thread Clifford Reiter
I am not cheering on work on _. but they can be found: x=: 1 2 _. 4 5 8.8 _. _ __ x~:x 0 0 1 0 0 0 1 0 0 _. is the only number not equally to itself. A bit of J humor On Tue, Feb 8, 2022 at 3:23 PM Hauke Rehr wrote: > answeres below > > Am 08.02.22 um 21:12 schrieb Henry Rich: > > Gener

Re: [Jprogramming] _. WAS A new bind conjunction WAS: Dictionaries

2022-02-08 Thread Hauke Rehr
answeres below Am 08.02.22 um 21:12 schrieb Henry Rich: Generalities may spur the imagination, but to use _. we would need a detailed spec for what every verb would do given indeterminate input. Where would it appear in the collating sequence? Collating: maybe I’m naive but I thought it woul

[Jprogramming] _. WAS A new bind conjunction WAS: Dictionaries

2022-02-08 Thread Henry Rich
Generalities may spur the imagination, but to use _. we would need a detailed spec for what every verb would do given indeterminate input.  Where would it appear in the collating sequence? If _. doesn't match _., how would I find the number and location of _. values in an array? The fact tha