Closed goyalyashpal closed 1 year ago
In the ⊞= ⊓'⊂@0'⊂@1 "abac" "cbaa"
example, you could do a ⊙∶
to get the values in the right order and a ∩⊂
to join them.
For cases with more arguments, you'd need a ⊃
with planet notation.
a
⊙∶
to get the values in the right order and a∩⊂
to join them
[∶] ∩⊂ ⊙∶ @0 @1 "ab" "bc"
≅ ["1bc" "0ab"] # 1
:+1:
~self hiding as offtopic~
things i got stuck at:
[:]
is done for only top 2 elements. use case eg: assert match
."1bc" "1ab" "0bc" "0ab"
from "01" "ab" "bc"
in no particular orderbothboth
; ~stuck~tablejoin
, or tab[: :]
stuck. next guess: tabjoin
with level
tab[: :] "01" "ab" "bc"
tabjoin "01" "ab" "bc"
rot
on each cell of the combo; or say, combo of rot1 rot2
and 1_2_3 4_5_6
\
Like: ⊞↻ [1 2] [1_2_3 4_5_6]
. Use case example: cross product[0_1 1_0]
from an array shaped [3 3 2 2] which is obtained from window 2_2
on a 2d array. use case: thinking for LCS algorithm: win2_2 tab= bothjoin dipflip @0 @1 "aba" "baa"\n⍚2'⊡0_1
# All of these work same for unloading a 4 member stack onto an array
# Rest can be figured out the same way
Mov ← [∩(∶∶)]
Mov ← [∩(⊙∘)]
Mov ← [⊙⊙⊙∘]
join
combo# Get a `join` combo
∩∩(|1 ⊂∶/⊔) ⍥(⍚2(|1 /⊔))2 ⊞⊂ "01" {"ab" "bc"}
⍤ ∶≅, ["1bc" "0bc" "1ab" "0ab"] [∩(∶∶)]
rot
combo# Get a `rot` combo
∩∩(|1 ↻∶/⊔) ⍥(⍚2(|1 /⊔))2 ⊞⊂ [1 2] {"abc" "fgh"}
⍤ ∶≅, ["hfg" "ghf" "cab" "bca"] [∩(∶∶)]
[∶]/□⊔ [1_2_3 4_5_6]
⍤ ∶≅, {1_2_3 4_5_6}
Sorry, what are you asking?
description
⊂@0 ⊂@1
using∩
,∩(⊂) @0 @1
to get⊂@0 ⊂@1
to be then used with other modifiers like bracket, fork, etcis this possible?
minimum working example
titles (or alternate ways to say this)
legend
⊂join
,↻rotate
,∩both
,⊓bracket
,⊙dip