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 collections #34

Open
422404 opened this issue Nov 27, 2022 · 0 comments
Open

Add collections #34

422404 opened this issue Nov 27, 2022 · 0 comments
Labels

Comments

@422404
Copy link
Owner

422404 commented Nov 27, 2022

Add collections and built-in functions to manipulate them.

Example:

myList = newList();
listAdd(myList, 1337);
listRemove(myList, 1337);
if (listContains(myList, 42)) {
  ...
}
if (listEmpty(myList)) {
  ...
}

mySet = newSet();
...

myMap = newMap();
mapPut(myMap, "hello", 42);
mapGet(myMap, "hello");
mapRemove(myMap, "hello");
if (mapContains(myMap, "hello")) {
  ...
};
keys = mapKeys(myMap);
values = mapValues(myMap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant