M
Modular11mo ago
alain

initialise variadiclist with a python tuple

@kapa.ai I have some python code that works on the basis of a file on disk and generates a python tuple 'mytuple' based on that file content. Next I load and run this python code from a mojo file. In the mojo code I want to use 'mytuple' to initialise a variadiclist. Something like: alias a: VariadicList[Int] = mytuple. The intention is to pass 'a' as a compile time parameter to a function fn myfunctiona: VariadicList[Int]
2 Replies
ModularBot
ModularBot11mo ago
Congrats @alain, you just advanced to level 2!
alain
alainOP11mo ago
Hmm anybody else has an idea whether and how this can be done ? Kapa.ai is not responding ...
Want results from more Discord servers?
Add your server