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

k4 dictionary operations #87

Open
bakul opened this issue Apr 15, 2011 · 0 comments
Open

k4 dictionary operations #87

bakul opened this issue Apr 15, 2011 · 0 comments

Comments

@bakul
Copy link
Contributor

bakul commented Apr 15, 2011

  x:`a`b!1 2
  y:`a`c|4 6
  x+y
`a`b`c!5 2 6
  x*:3
  x
`a`b!3 6
  x,y
`a`b`c!(1 4;2;6)

If a key,value pair exists in both operands, the operation applies to the value. If the pair is in only one dictionary, the key is added and the "right" thing is done (probably by adding the correct default for the operation). For instance:

  x-y
`a`b`c!-3 2 -6
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

2 participants