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 built-in functions #8

Open
11 tasks
SkymanOne opened this issue Mar 24, 2024 · 0 comments
Open
11 tasks

Add built-in functions #8

SkymanOne opened this issue Mar 24, 2024 · 0 comments

Comments

@SkymanOne
Copy link
Owner

SkymanOne commented Mar 24, 2024

Follow-up for #7

Introduce generic built-in functions for operations on lists and safe maths:

  • map(list, func) -> List/Set<Generic<int, uint, float, address, hex, list, set>>
  • map(list, func) -> List/Set<Generic<int, uint, float, address, hex, list, set>>
  • add(list, item) -> List/Set<Generic<int, uint, float, address, hex, list, set>>
  • remove(list, item) -> List/Set<Generic<int, uint, float, address, hex, list, set>>
  • get(list, item) -> Generic<int, uint, float, address, hex, list, set>
  • handle(expression, func) -> Generic<int, uint, float> - for safe math operation
  • size(list) -> uint
  • keys(mapping) -> Set<Generic<int, uint, float, address, hex>>
  • value(mapping) -> list
  • insert(mapping, key, value) -> mapping
  • value(mapping, key) -> Generic<int, uint, float, address, hex, list, set>
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

No branches or pull requests

1 participant