---
title: 'Procedures, reporters, and closures'
part: 'Part III — The Language'
partNumber: 3
order: 4
subtitle: 'Named and anonymous def, captures, return, recursion, and motif APIs'
---

_Content coming soon._ Alongside named procedures, this chapter will introduce anonymous
`def(...) [ ... ]` reporters, snapshot captures, capture limits, and the rule that every
anonymous body returns a value on every path.

<Run>{`// A reusable petal procedure
def petal(len, w) [
  satin w
  repeat 8 [ fd len rt 22.5 ]
  repeat 8 [ fd len rt 22.5 ]
]
repeat 6 [
  petal(15, 3)
  up  moveto 0 0  down
  rt 60
]`}</Run>

<Checkpoint chapterId="ch-16">Chapter content coming soon.</Checkpoint>
