
16 Jul
2005
16 Jul
'05
9:50 a.m.
On 2005 July 16 Saturday 11:19, yin wrote:
I need some testing 'main' function:
./bundle01 <cmd> <arg1> <arg2> ...
Your code is close to working. Most likely the detail which gave you trouble is the syntax for mod. It should be
b01_mod a b = a `mod` b Infix operator names in Haskell all use backquotes.
There are some other, minor problems -- for indexing you need ss!!0, the name m01_mod, and you may need an 'import' to make getArgs visible.