Skip to content

cotrForIn

Iterates over items

Aliases:

  • cotrForIn
  • forIn

haskell

-- Haskell does not have a direct for...in loop.
-- Use higher-order functions like 'map' or 'forM' instead:
forM iterable \item -> do
-- Your code here

shellscript

Terminal window
for item in list; do
// Your code here
done