v_args wrapper #1471
Unanswered
shewitt-au
asked this question in
Q&A
v_args wrapper
#1471
Replies: 1 comment
-
|
Yes, it's not well documented. wrapper is a callback that accepts Here is the implementation of def _vargs_inline(f, _data, children, _meta):
return f(*children)
def _vargs_meta_inline(f, _data, children, meta):
return f(meta, *children)
def _vargs_meta(f, _data, children, meta):
return f(meta, children)
def _vargs_tree(f, data, children, meta):
return f(Tree(data, children, meta)) |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm hoping that the v_args decorator with the wrapper option is what I'm looking for. I can't find any info on this feature much beyond its existence. If this is though lack of looking on my part I apologise in advance. Any information would be much appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions