[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: call/cc
jmarshall@mak.com writes:
> (line-equation line
> (lambda (slope y-intercept)
> (format t "~&The line is ~d X + ~d" slope y-intercept))
> (lambda (x-intercept)
> (format t "~&The line is vertical through X = ~d" x-intercept)))
i didn't know the "~&" which is an optional "\n" if one is needed, funny :)
ocaml:
line-equation line
(printf "The line is %d X + %d\n")
(printf "The line is vertical through X = %d\n")
merd (should be):
line-equation(line,
printf("The line is %d X + %d\n",,),
printf("The line is vertical through X = %d\n",))