`type Point* = object x,y,a,b: int func initPoint(x,y,a,b:int):Point = result.x 
= x result.y = y result.a = a result.b = b if some(x).isNone and 
some(y).isNone: return if not(y^2 == x ^ 3 + a*x+b): raise 
newException(ValueError, fmt"({x}, {y}) is not on the curve") `

Run

Reply via email to