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

support dict functions #12

Open
7 tasks
fiji-flo opened this issue Nov 19, 2017 · 0 comments
Open
7 tasks

support dict functions #12

fiji-flo opened this issue Nov 19, 2017 · 0 comments

Comments

@fiji-flo
Copy link
Owner

  • set: Takes a dict, a key, and a value, and sets that key/value pair in
    the dict. set $dict $key $value. For convenience, it returns the dict,
    even though the dict was modified in place.
  • unset: Takes a dict and a key, and deletes that key/value pair from the
    dict. unset $dict $key. This returns the dict for convenience.
  • hasKey: Takes a dict and a key, and returns boolean true if the key is in
    the dict.
  • pluck: Given a key and one or more maps, get all of the values for that key.
  • keys: Get an array of all of the keys in a dict.
  • pick: Select just the given keys out of the dict, and return a new dict.
  • omit: Return a dict without the given keys.
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