Skip to content

Add functions with arguments

Michael Aaron Murphy requested to merge nounoursheureux:function-arguments into master

Created by: nounoursheureux

Syntax: This creates a function called print_two_strings which takes two arguments:

fn print_two_strings first second
  echo $first $second
end

And this will call the function:

ion:# print_two_strings "Foo" "Bar"
Foo Bar

Merge request reports