Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kcruijss opened this issue Aug 16, 2023 · 0 comments
Open

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

kcruijss opened this issue Aug 16, 2023 · 0 comments

Comments

@kcruijss
Copy link

kcruijss commented Aug 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant