Package osh :: Module function
[frames] | no frames]

Module function

source code

Encapsulates functions used in osh commands such as f and select.

osh function syntax:

   [[lambda] ARGS:] EXPRESSION

ARGS: Comma-separated list of function arguments, optionally preceded by keyword lambda. ARGS may be omitted only for a function with no arguments.

EXPRESSION: A Python expression written in terms of the function arguments.

Example:

   x: max(x, 10)
Classes
  NotAFunctionException