'' -: 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-
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
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
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
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
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
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