05AB1E icon indicating copy to clipboard operation
05AB1E copied to clipboard

`.I` n'th permutation builtin doesn't work correctly for bit-lists

Open kcruijss opened this issue 10 months ago • 0 comments

I was working on this 05AB1E port of this J answer for the Shift Braille down codegolf challenge, but I was getting incorrect results.

When I used a regular 14L list, the resulting permutation was as expected however.

Apparently the .I doesn't work correctly on bit-lists for some reason. If I prepend a ƶ and append a Ā, the permutations builtin does work correct: Try it online. (I would have expected the same result here.)

EDIT: ƶ + Ā doesn't always work as work-around, so I have to use ā< and è instead. Discovered when I was working on my answer here.

kcruijss avatar Aug 16 '23 09:08 kcruijss