RosettaCodeData/Task/Named-parameters/Sidef/named-parameters.sidef

7 lines
212 B
Plaintext

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);