Calling snippets as a function


#1

Hi, I was wondering if I have a list snip like
’prefix’: ‘mylist’
‘body’: “this_list = [’$1’, ‘$2’]”,
can I call this as a function, and how?

So instead I wanna call snippet mylist5 and get back
"this_list = [’$1’, ‘$2’, ‘$3’, ‘$4’, ‘$5’]"
instead

Thank you


#2

I think exactly what you’re asking might be difficult. But if you provide more context describing why you want this, then perhaps there is a different way.