Hi, 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; Thanks