RosettaCodeData/Task/Documentation/Arturo/documentation.arturo
2023-07-01 13:44:08 -04:00

13 lines
291 B
Text

f: function [x :integer, y :integer][
;; description: « takes two integers and adds them up
;; options: [
;; double: « also multiply by two
;; ]
;; returns: :integer
result: x+y
if not? null? attr 'double -> result: result * 2
return result
]
info'f