Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/String-comparison/J/string-comparison-1.j
Normal file
6
Task/String-comparison/J/string-comparison-1.j
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
eq=: -: NB. equal
|
||||
ne=: -.@-: NB. not equal
|
||||
gt=: {.@/:@,&boxopen *. ne NB. lexically greater than
|
||||
lt=: -.@{.@/:@,&boxopen *. ne NB. lexically less than
|
||||
ge=: {.@/:@,&boxopen +. eq NB. lexically greater than or equal to
|
||||
le=: -.@{.@/:@,&boxopen NB. lexically less than or equal to
|
||||
6
Task/String-comparison/J/string-comparison-2.j
Normal file
6
Task/String-comparison/J/string-comparison-2.j
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
'ball' (eq , ne , gt , lt , ge , le) 'bell'
|
||||
0 1 0 1 0 1
|
||||
'ball' (eq , ne , gt , lt , ge , le) 'ball'
|
||||
1 0 0 0 1 1
|
||||
'YUP' (eq , ne , gt , lt , ge , le) 'YEP'
|
||||
0 1 1 0 1 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue