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

Add new case command #83

Open
pyroscope opened this issue May 30, 2018 · 0 comments
Open

Add new case command #83

pyroscope opened this issue May 30, 2018 · 0 comments

Comments

@pyroscope
Copy link
Owner

pyroscope commented May 30, 2018

case = ‹expression›, {‹val1›, ‹cmd1›[, …]} […] [, {(otherwise), ‹default1›[, …]}]

Means we have two new commands. otherwise returns a singleton value and is thus uniquely identifiable.

case goes through the array elements and compares the case expression against the case values, on the first match it executes the associated commands and returns their result. (otherwise) always matches.

@pyroscope pyroscope added this to the PS 1.2 milestone Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant