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

pick, pickmod, inhabit, inhabitmod #921

Merged
merged 11 commits into from Jan 18, 2024
Merged

pick, pickmod, inhabit, inhabitmod #921

merged 11 commits into from Jan 18, 2024

Conversation

yaxu
Copy link
Member

@yaxu yaxu commented Jan 18, 2024

  • the args for pick are now reversed as standard (old behaviour still supported to avoid breaking change)
  • pick is also now a pattern method
  • pick now also accepts a lookup table for pick-by-name as an alternative to pick-by-index from a list
  • inhabit added with same behaviour as pick, except cycles from source patterns are squeezed into events of inhabited patterns
  • Also some general doc tidying, sorry for the noise..
  • There is also pickmod and inhabitmod, for wrapping indexes around rather than clamping them

@yaxu yaxu merged commit 98b7859 into main Jan 18, 2024
2 checks passed
@yaxu yaxu deleted the inhabit branch January 18, 2024 17:08
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

Successfully merging this pull request may close these issues.

None yet

1 participant