[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] The Dyalog ⌸ operator
From: |
Kacper Gutowski |
Subject: |
Re: [Bug-apl] The Dyalog ⌸ operator |
Date: |
Wed, 27 Apr 2016 05:28:08 +0200 |
On Wed, Apr 27, 2016 at 5:02 AM, Elias Mårtenson wrote:
> So, I wanted to simply take a string of characters, and create a list of
> each character and the number of occurrences of each character in that
> string.
Indeed it could be written in Dyalog very succinctly as
⊣,∘≢⌸ but I would write it portably with outer product:
{v,⍪+⌿⍵∘.≡v←∪⍵}"abcfoobat"
-k