Re-loading a file in the repl

Is there anyway to do this? IE modify a file I'm working on, and reload it in the repl, without exiting and importing again. (I am aware this exact same issue exists in node and is likely a cultural issue, but other repls can do it and I miss it)
1 Reply
dan.the.discloser
Is there a way to "read" a file in REPL so it behaves as if it were type from the keyboard rather than required? If it is something you are pulling in a top level, can you just save it under another name and require it again? REPL doesn't enforce CONST so presumably you would just overwrite the visible names with the new definitions.