Accepting and returning parameters

The complete source of basics_parameters.ek9, compiled by the EK9 compiler. Shown on basics.html.

#!ek9
defines module site.basics.parameters

  defines function

    function1()
      -> n as Integer
      <- sum as Integer: n + n

    function2()
      ->
        n1 as Integer
        n2 as Integer
      <-
        sum as Integer: n1 + n2

Download basics_parameters.ek9