public override Value Evaluate(FSharpList <Value> args) { PointList points = new PointList(); var input = (args[0] as Value.List).Item; foreach (Value v in input) { Point p = ((Value.Container)v).Item as Point; points.Add(p); } _polygon = Polygon.by_vertices(points); return(Value.NewContainer(_polygon)); }
public override Value Evaluate(FSharpList<Value> args) { PointList points = new PointList(); var input = (args[0] as Value.List).Item; foreach (Value v in input) { Point p = ((Value.Container)v).Item as Point; points.Add(p); } _polygon = Polygon.by_vertices(points); return Value.NewContainer(_polygon); }