### to-report

#### to-report procedure-name
to-report procedure-name [input1 ...]

Used to begin a reporter procedure.

The body of the procedure should use `report` to report a value for the procedure. See report.

    to-report average [a b]
      report (a + b) / 2
    end

    to-report absolute-value [number]
      ifelse number >= 0
        [ report number ]
        [ report (- number) ]
    end

    to-report first-turtle?
      report who = 0  ;; reports true or false
    end

Take me to the full NetLogo Dictionary