Use ⊥ to combine multiplication with addition
(a×b)+C -> a⊥b,C
(C)+a×b -> a⊥b,C
Assumptions:
a and b are terms that don't require further parentheses when used as a left argument
C is an expression that may need parentheses when used as a left argument
a b C evaluate to numeric scalars
@Adám @ngn hey guys, can anyone give me a hand here? I'm trying to count how many equal elements a vector has. I know I can use ⌸ but the usage is weird and I can't seem to get it right >.>
I am a beginner in APL and am writing a dfm function to check whether two strings are an anagram of one another. The method I thought of was:
{⍵[⍋⍵] ≡ ⍺[⍋⍺]}
However, it returns '0' for 'ALBERT EINSTEIN' and 'TEN ELITE BRAINS' that are anagrams. I tried to check why:
a ← 'ALBERT EINSTE...