Skip to content

Conversation

@dantevlobos
Copy link

This PR adds support for a getter and a setter for the list data structure in DaphneDSL. I am open to changing the names of the functions and also how they operate. I wasn't sure how to call the functions, so I made the names verbose to leave no confusion of what the function does. As for the setter method, I modeled it to be as close as possible to the remove method for lists to increase the chances of the function working as intended.

New Functions:

  1. RemoveElementInList()
  2. GetElementInList()

Exactly how the functions work are written in the documentation for built in functions, Builtin.md.

Tests cases have been written similar to the pre existing tests for lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant