Closed thedeemon closed 5 months ago
I see in some library code out there for (v <- expr) yield expr works, but the book only mentions foreach, forM, and forA. What is for? Is it forM or not quite?
for (v <- expr) yield expr
foreach
forM
forA
for
I think for will be removed in favor of an explicit use of forA or forM.
for has been removed.
I see in some library code out there
for (v <- expr) yield expr
works, but the book only mentionsforeach
,forM
, andforA
. What isfor
? Is itforM
or not quite?