equivalent to params keyword in java

52

equivalent to params keyword in java -

public void foo(Object... bar) {
    for (Object baz : bar) {
        System.out.println(baz.toString());
    }
}

Comments

Submit
0 Comments