Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Null-object/J/null-object-1.j
Normal file
1
Task/Null-object/J/null-object-1.j
Normal file
|
|
@ -0,0 +1 @@
|
|||
isUndefined=: _1 = nc@boxxopen
|
||||
5
Task/Null-object/J/null-object-2.j
Normal file
5
Task/Null-object/J/null-object-2.j
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
isUndefined 'foo'
|
||||
1
|
||||
foo=:9
|
||||
isUndefined 'foo'
|
||||
0
|
||||
12
Task/Null-object/J/null-object-3.j
Normal file
12
Task/Null-object/J/null-object-3.j
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
1 1 0 1#3 4 _ 5 NB. use bitmask to select numbers
|
||||
3 4 5
|
||||
I.1 1 0 1 NB. get indices for bitmask
|
||||
0 1 3
|
||||
0 1 3 { 3 4 _ 5 NB. use indices to select numbers
|
||||
3 4 5
|
||||
1 1 0 1 #inv 3 4 5 NB. use bitmask to restore original positions
|
||||
3 4 0 5
|
||||
1 1 0 1 #!._ inv 3 4 5 NB. specify different fill element
|
||||
3 4 _ 5
|
||||
3 4 5 (0 1 3}) _ _ _ _ NB. use indices to restore original positions
|
||||
3 4 _ 5
|
||||
Loading…
Add table
Add a link
Reference in a new issue