You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is a great templating engine! is it possible to pass a condition to a custom function? i want to implement a where type of filtering functionality:
where:
[1,3,5] | where ($_ <4)
[1,3]
The text was updated successfully, but these errors were encountered:
imacks
changed the title
for as a function?
where as a function?
Sep 26, 2018
This is not currently possible. It would require to implement this feature, similar to the way we implement the operator @ when you want to pass a function pointer
By default, when you are using a variable, it is going to call it if it is a function. Using the @ prefix allows to store a reference to the function itself
Or anonymous functions - is this supported? If so, what is the use case?
Anonymous functions are currently not supported. The closest builtin is the wrap statement
this is a great templating engine! is it possible to pass a condition to a custom function? i want to implement a where type of filtering functionality:
The text was updated successfully, but these errors were encountered: