Loops/Foreach: Difference between revisions
Content added Content deleted
BrianFennell (talk | contribs) mNo edit summary |
|||
Line 491:
Function 'each' is defined in imperative module as:
<lang ela>each f (x::xs) = f x $ each f xs
This also can be accomplished using 'map':
<lang ela>open console list
_ = map writen [1..10]</lang>
===Alternate Approach===
|