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

Implement idx for value sets #123

Open
hgiesel opened this issue Jan 2, 2020 · 0 comments
Open

Implement idx for value sets #123

hgiesel opened this issue Jan 2, 2020 · 0 comments

Comments

@hgiesel
Copy link
Owner

hgiesel commented Jan 2, 2020

The last contiguous number on a value set is its idx:

[[$c1|abc|def]] Has a name "c", a sub "0",  and an idx "1".
[[$c2|foo|bar]] Has a name "c", a sub "0", and an idx "2".
[[$meh|foo|bar]] Has a name "meh", a sub "0", and an idx "null".

$eval($c1) => evaluates c1
$eval($c*) => evaluates c1, and c2
$eval($c*:*:0) => evaluates c1, and c2 to their first value.
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