If I just start the swift REPL with a command like
swift myscript.swift, then I will be returned to the shell once the myscript.swift has executed. Instead, I would like to remain in the REPL to work with the data and functions that my script has generated. Is that possible?
It would also be very useful if the script (myscript.swift) could have access to additional arguments, in case I run it with a command like
swift myscript.swift arg1 arg2.