Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (*
- Use like this:
- for 0 to 3 fn x => (
- print (Int.toString x);
- print "\n"
- );
- *)
- fun to (start, max) = if start >= max then
- []
- else
- start :: to((start+1), max)
- fun foreach list func = app func list
- fun for start listop max func = foreach (listop (start, max)) func
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement