[Haskell-cafe] loop in C , recursion in haskell

Alex Gontcharov alexg005 at hotmail.com
Thu Mar 25 01:38:44 EST 2004


I am new to haskell and would look to write a function equivalent
to the following loop in C

int value = 500000;
int part_stack[4];
int *part_ptr = part_stack;
for (; value; value /= 10000)
      *part_ptr++ = value % 10000;


More information about the Haskell-Cafe mailing list