Post History
APL(Dyalog Unicode), 4 bytes SBCS Anonymous tacit prefix function. ,∘≢⌸ Try it on APLgolf! …⌸ between each unique element and its indices, apply: ,∘≢ concatenate the unique element to the ta...
Answer
#1: Initial revision
# [APL(Dyalog Unicode)][1], <sup><s></s></sup>4 bytes <sup>[SBCS][2]</sup> Anonymous tacit prefix function. ``` ,∘≢⌸ ``` [Try it on APLgolf!](https://razetime.github.io/APLgolf/?h=AwA&c=03nUMeNR56JHPTsA&f=e9Q39VHbhDQFQyA0UjBWMFUwUzDjegQWVdfV1VWHstMUHvWuwSpuCNRhDtYN1AmkTY0VTBQMDRQA&i=AwA&r=tio&l=apl-dyalog&m=train&n=f) [1]: https://dyalog.com [2]: https://github.com/abrudz/SBCS …`⌸` between each unique element and its indices, apply: `,∘≢` concatenate the unique element to the tally of indices