[previous][up][top][index]
search for:

return -- return from a function

return x -- returns x as the value of the function currently being evaluated.
return; -- returns null as the value of the function currently being evaluated.

i1 : f = x -> (3 + 4 * return {x}; 5);
i2 : f 101

o2 = {101}

o2 : List
i3 : g = x -> (3 + 4 * return; 5);
i4 : g 101
i5 : g 101 === null

o5 = true

See also:

  • break -- break from a loop

  • [previous][up][top][index]
    search for: