6 lines
212 B
Text
6 lines
212 B
Text
func example(foo: 0, bar: 1, grill: "pork chops") {
|
|
say "foo is #{foo}, bar is #{bar}, and grill is #{grill}";
|
|
}
|
|
|
|
# Note that :foo is omitted and :grill precedes :bar
|
|
example(grill: "lamb kebab", bar: 3.14);
|