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

PPN: Element-wise brace expansion notation #10

Open
trevorld opened this issue Feb 7, 2021 · 0 comments
Open

PPN: Element-wise brace expansion notation #10

trevorld opened this issue Feb 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@trevorld
Copy link
Member

trevorld commented Feb 7, 2021

  • By default multiple brace expansions are expanded as a cross-product i.e. {a..b}{1..2} is same as a1 a2 b1 b2
  • Sometimes would be nice to have a brace expansion expanded element-wise i.e. get a1 b2
  • If one side is shorter than the other would be nice to recycle elements as needed
  • In mathematics notation the element-wise product is notated by a circle with a dot in the middle ⊙ (U+2299) which looks like the bilabial click ʘ (U+0298).
  • As an ASCII alternative perhaps use {} or (.) or perhaps ! i.e. {a..b}{}{1..2} or {a..b}(.){1..2} or {a..b}!{1..2}?
@trevorld trevorld added the enhancement New feature or request label Feb 7, 2021
@trevorld trevorld self-assigned this Feb 7, 2021
@trevorld trevorld removed their assignment Mar 30, 2021
@trevorld trevorld transferred this issue from piecepackr/ppgames Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant