RosettaCodeData/Task/Function-definition/AppleScript/function-definition-4.applescript

6 lines
144 B
AppleScript
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
on multiply:a |by|:b -- 'by' is "barred" here because otherwise it's a reserved word.
return a * b
end multiply:|by|:
my multiply:2 |by|:3