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

collections "arithmetics" commands #14

Open
nitzantomer opened this issue Feb 14, 2017 · 0 comments
Open

collections "arithmetics" commands #14

nitzantomer opened this issue Feb 14, 2017 · 0 comments

Comments

@nitzantomer
Copy link
Member

Examples:
list:

[1, 2, 3] + [4, 5]
// is
[1, 2, 3, 4, 5]

[1, 2, 3] - [2, 4]
// is
[1, 3]

map:

{ str: string } + { num: 4 }
// is
{ str: string, num: 4 }
// but
{ str: string, num: 5 } + { num: 4 }
// is
{ str: string, num: 5 }
// so:
{ str: string, num: 5 } ++ { num: 4 }
// is
{ str: string, num: 4 }

{ str: string, num: 5 } - [num]
// is
{ str: string }
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