-
Notifications
You must be signed in to change notification settings - Fork 21
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
SC functions to work on lists #826
Comments
Hey team! Please add your planning poker estimate with Zenhub @apoorv-2204 @Neylix @samuelmanzanera @tenmoves @netboz @bchamagne |
I think we can create a new |
What about the syntax, shoud we include elixir's lambdas in the SC?
|
if we don't want to allow lamba functions and to simplify the language, we could leverage macro's style agg = reduce inputs do
...
end reduce inputs, acc: 0 do
acc + 1
end |
I was browsing some docs a few days ago, looking for equivalent of erlang's filtermap in Elixir, and I remember I read that all Enum api can be reproduced using two of the Enum module provided fonctions. Something like all logic operations can be made from NAND doors. |
Another proposition to help the readability as sentence reduce get_calls(), as: input, with: [my_var_in_acc: 0] do
end |
Is your feature request related to a problem?
When writing SC, we need functions to be able to work on lists.
Describe the solution you'd like
We could add a map/filter/reduce. What would be the syntax?
Additional context
No response
The text was updated successfully, but these errors were encountered: