Execute HQ9+/Haskell: Difference between revisions
m
Fixed syntax highlighting.
(Added the case to deal with the increment instruction, and removed the notice) |
m (Fixed syntax highlighting.) |
||
Line 3:
We use [https://hackage.haskell.org/package/base-4.11.1.0/docs/Data-Traversable.html#v:mapAccumR mapAccumR] to maintain the accumulator.
However, the specification doesn't say what to do with said accumulator on completion.
<
import Data.Char (toLower, toUpper)
Line 37:
pass n = case n of
0 -> "Go to the store and buy some more, "
_ -> "Take one down and pass it around, "</
|