A generator, duck typing, and a branchless conditional walk into a bar.
Maths is everywhere[citation needed].