You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# List.make 10000000 1;;
Stack overflow during evaluation (looping recursion?).
# let make i x =
let rec loop acc x = function
| 0 -> acc
| i -> loop (x::acc) x (i-1)
in loop [] x i;;
val make : int -> 'a -> 'a list = <fun>
# make 10000000 1;;
- : int list =
[1; 1; 1; 1; 1; 1; 1; 1; 1; ...]
Reported by apsheronets on 2009-09-07 13:42:11
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 12
Reported by
apsheronets
on 2009-09-07 13:42:11The text was updated successfully, but these errors were encountered: