Replies: 1 comment 3 replies
-
You can just use this:
Brackets |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hello,
I would like to know how to add a function accepting closure as an argument.
For example, I want to create a function
flatten( something, { #.some_field })
:something
would be a[]map[string]string
[]string
containing thesome_field
values found in thesomething
arrayTo achieve this, I believe closure would be the best way. Is it something that can be done ? (I didn't find other examples except the builtins all/one/etc. but I don't see how to transpose this to a function I could expose).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions