How do you write a F# recursive function 'something' that takes a single point (x, y)
and index i as
an arguments and returns an ℎ element of the infinite list corresponding to S(x, y)
.
ex: let something (x,y) i =
F# function F(,)
should be defined as:
F(x,y)(u, v) = (u2 − v2 + x, 2uv + y)
F# function 'something' (x, y)
of a point (x, y)
should be an infinite list of items:
S(x, y) = {(0, 0), F(x,y)(0, 0), F(,y)(F(x,y)(0, 0)), F(x,y)(F(x,y)(F(x,y)(0, 0))), …}