This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Arrays indexers #561
Comments
I will add |
Yup, I am hitting this problem now also. I like the predicate idea a lot.
|
The Singleton function was added here: https://github.com/accordproject/ergo/releases/tag/v0.6.3 |
Support for array index access is ready in the markdown branch https://github.com/accordproject/ergo/tree/js-experiment-markdown Proposed syntax:
where The result of that function is an option. Examples:
|
The work is completed in #623 with syntax and semantics as shown in the previous message. Please re-open if any concern/questions. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
So far I wasn't able to find indexers function in arrays, and I cannot extract one item from an array.
Even with the foreach with the condition, an array is returned.
It would be interesting to have the usual:
if predicates are supported something like:
let goodItem = find(itemList, x.id == "someId");
The text was updated successfully, but these errors were encountered: