test_parrot v0.3.0 TestParrot

parrot/3

  • the message parroted back depends on the arity when called
  • my_function() sends back :name_of_function
  • my_function(arg1) sends back {:name_of_function, arg1}
  • my_function(arg1, arg2) sends back {:name_of_function, arg1, arg2}
  • the function return value is either

    • the default defined in the macro call, or
    • whatever term was told to say for that scope and function name

Link to this section Summary

Link to this section Functions

Link to this macro

parrot(scope, name, default)

(macro)