-
Notifications
You must be signed in to change notification settings - Fork 1
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
length
: Returns the length of the given string/list/map
#24
length
: Returns the length of the given string/list/map
#24
Conversation
I like the automatic registration of native functions. I wouldn't classify it as IO, though. Either move it to "Conversion" (since it returns a different type) or create a new one.
will throw for everything but constants directly passed to the function. After getting the single expression, you need to evaluate it using the interpreter. Afterwards, you can work with the |
I originally had a new group (String?), but the polymorphic nature makes it hard to classify. |
What about |
I'm not sure this rabbit hole is worth it. |
634dbc8
to
2cfdd34
Compare
The automatic registration is now part of #28. We either fix trimming, or remove that requirement; either way, it isn't really directly related to this PR. |
I don't love it, but IO isn't great either. Done. |
a3eacec
to
7ef436a
Compare
@chucker I added a section about how the new functions should be documented. Please add some documentation for the length function at For reference, you can look at the |
length
functionlength
: Returns the length of the given string/list/map
abede58
to
5ff08b1
Compare
…ssions, added more tests
2f2f5b0
to
0325402
Compare
Only for strings so far.
I'm not sure how to create maps and lists; perhaps by parsing a piece of code?
- [ ] properly implement trimming (IL2026, IL2072)see trimmable reflection #28