2 Function Design

  1. Examples
  2. Header
  3. Description
  4. Body
  5. Test

Preconditions

One condition of a function is the type contract.

Preconditions are any property that a function's argument must satisfy to ensure that the function works. These are included in the docstring.