Department numbers: Difference between revisions
Content added Content deleted
(→Python :: List comprehension notation: added an LC translation of the nested bind expression) |
|||
Line 2,061: | Line 2,061: | ||
===List comprehension=== |
===List comprehension=== |
||
Nested ''bind'' (or ''concatMap'') expressions like those above |
Nested ''bind'' (or ''concatMap'') expressions (like those above) can also be translated into list comprehension notation: |
||
{{Works with|Python|3.7}} |
{{Works with|Python|3.7}} |
||
<lang python>'''Department numbers''' |
<lang python>'''Department numbers''' |