map and filter .. iteration #299
Unanswered
gitperson1980
asked this question in
Q&A
Replies: 2 comments
-
Right now it’s not possible. But I gonna add something like #i variable. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great! Also I would like to return multi types vs just 1 type. Below you can see that I have to marshal all types to string. If I can return interface types per row in the return array from map .. that would be very good. code := `map(filter(Tweets, {len(.Text) > 0}), {.Text +"\t"+ Format(.Date)+"\n"})` // date is marshaled to string
//can we
code := `map(filter(Tweets, {len(.Text) > 0}), {.Text , .Date)})` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the map() example below.. is there a way to know or keep track of the actual number of the iteration?
Beta Was this translation helpful? Give feedback.
All reactions