This task is automatically imported from the old Task Issue Board and it was originally created by jaroslavtulach.
Original issue is here.
This is my source code. IDE seems to have problems to parse it. Please find the full project as an attachment.
from Standard.Base import all
from Standard.Table import all
from Standard.Database import all
import Standard.Visualization
func1 operator2 =
operator6 = operator2.map (x -> x.trim)
operator7 = operator6.map (x -> x.split ",")
operator8 = operator7.map (v -> v.map (n -> Integer.parse n))
operator8
main =
text1 = "simple.txt"
operator1 = enso_project.data / text1
operator3 = operator1.read_text
operator4 = operator3.lines
operator5 = operator4.map (x -> x.split "->")
operator8 = Main.func1 _
operator6 = operator5.map operator8
operator2 = operator6.map (x -> all_points x)
operator9 = operator2.fold [] (+)
operator9
all_points v =
b = Vector.new_builder
go x y i = if i == v.length then b.to_vector else
tx = v.at i . at 0
ty = v.at i . at 1
nx = x + (tx - x).signum
ny = y + (ty - y).signum
b.append [ nx, ny ]
if nx == tx && ny == ty then go nx ny i+1 else
go nx ny i
sx = v.at 0 . at 0
sy = v.at 0 . at 1
b.append [ sx, sy ]
go sx sy 1
Comments:
The failure as shown by the IDE: (jaroslavtulach - Dec 14, 2022)
Zip version of my project (jaroslavtulach - Dec 14, 2022)
This task is automatically imported from the old Task Issue Board and it was originally created by jaroslavtulach. Original issue is here.
This is my source code. IDE seems to have problems to parse it. Please find the full project as an attachment.
Comments:
The failure as shown by the IDE: (jaroslavtulach - Dec 14, 2022)
Zip version of my project (jaroslavtulach - Dec 14, 2022)