Rob,
Rotate by row/column was exactly what I needed, thanks!
Tony,
Wow! I didn't know that catalog worked like that! Thanks!
Skip
Skip Cave
Cave Consulting LLC
On Mon, Jun 12, 2023 at 2:53 AM 'Rob Hodgkinson' via Programming <
programm...@jsoftware.com> wrote:
> See dyadic rotate (
> https:/
And how using Catalogue to generating s1:
s1 =. {'ABCD';'1234'
On Mon, Jun 12, 2023 at 3:53 AM 'Rob Hodgkinson' via Programming <
programm...@jsoftware.com> wrote:
> See dyadic rotate (
> https://code.jsoftware.com/wiki/Vocabulary/bardot#dyadic)
>
> APL had rotate on either first or last axis,
See dyadic rotate (https://code.jsoftware.com/wiki/Vocabulary/bardot#dyadic)
APL had rotate on either first or last axis, and J has rotate that can be
‘adapted’ to do what you want using rank:
]s1=.4 4${(4#'ABCD'),.(-.&' ')":4#1234
┌──┬──┬──┬──┐
│A1│A2│A3│A4│
├──┼──┼──┼──┤
│B1│B2│B3│B4│
├──┼─
I can generate a 4x4 square with unique identifiers in each square:
]s1=.4 4${(4#'ABCD'),.(-.&' ')":4#1234
┌──┬──┬──┬──┐
│A1│A2│A3│A4│
├──┼──┼──┼──┤
│B1│B2│B3│B4│
├──┼──┼──┼──┤
│C1│C2│C3│C4│
├──┼──┼──┼──┤
│D1│D2│D3│D4│
└──┴──┴──┴──┘
How can I rotate each row a different amount?
I want t