Skip to content

Lambda max

Python lambda + ternary

Flowchart (ISO 5807)

YesNoStartInput a, ba > bReturn aEndReturn bEndFigure 1 — mx

Source code

Python
mx = lambda a, b: a if a > b else b

The editor opens with this code — change it and the chart redraws.

Language
Python
Constructs
lambda + ternary
Topic
Lambdas
Formats
Word, Visio, draw.io, PDF, SVG

Related examples