Skip to content

Instantly share code, notes, and snippets.

@Delta456
Last active November 9, 2023 18:35
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Delta456/265ca77e06f52e1681c96630111c2dd6 to your computer and use it in GitHub Desktop.
Save Delta456/265ca77e06f52e1681c96630111c2dd6 to your computer and use it in GitHub Desktop.
Python Print in V
import os { flush }
struct Print {
sep string = ' '
end string = '\n'
}
fn (p Print) print(args ...string) {
for i, arg in args {
print(arg)
if i < args.len - 1 {
print(p.sep)
flush()
}
}
print(p.end)
flush()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment