Can I load a mojo file on the REPL session like irb in ruby so I can execute function?
Basically to call the functions in repl shell instead of writing the code
1 Reply
Yeah, I was able to import functions from custom packages/modules in the REPL. The REPL must be started in the same directory as the packages/modules you want to use. I'm quite new to Mojo so maybe there a way to add these to the Mojo library path (like in Python), but I haven't looked into it yet...