for arr: (it) {}
This commit is contained in:
@@ -7,7 +7,7 @@ Point :: struct {
|
||||
|
||||
// Print all arguments — accepts any type, dispatches via type-switch
|
||||
print_any :: (args: ..Any) {
|
||||
for args {
|
||||
for args: (it) {
|
||||
type := type_of(it);
|
||||
if type == {
|
||||
case int: write(int_to_string(cast(s32) it));
|
||||
|
||||
Reference in New Issue
Block a user