Skip to content

Instantly share code, notes, and snippets.

@Delta456
Last active June 5, 2024 19:19
Show Gist options
  • 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