begin parser to load from file

This commit is contained in:
2025-07-12 02:02:21 +01:00
parent 5b63471b30
commit bb5e3e8ef3
9 changed files with 171 additions and 6 deletions

View File

@@ -3,12 +3,12 @@ struct
open AppType
fun updateSquares (squares, newX, newY, item) =
Vector.mapi
(fn (idx, el) =>
if idx = newX then
Vector.mapi (fn (iidx, iel) => if iidx = newY then item else iel) el
else
el) squares
let
val yAxis = Vector.sub (squares, newX)
val yAxis = Vector.update (yAxis, newY, item)
in
Vector.update (squares, newX, yAxis)
end
fun changeSquaresSize (squares, newCanvasWidth, newCanvasHeight) =
let