Problema 3 present done, falta trocar a ordem dos quadrados no carpets

This commit is contained in:
Tiago Sousa 2023-01-06 11:09:20 +00:00
parent b75aa0f35a
commit 2f0635b655

View file

@ -1254,9 +1254,12 @@ carpets = anaList gcarp
gcarp = (nil -|- (split (curry sierpinski ((0,0),32)) id)) . outNat
present :: [[Square]] -> IO [()]
present = cataList gprst
gprst = either (return . singl) (fmap singl . (>> await) . (drawSq . p1))
gprst = either (return . nil) (aux . (((>> await) . drawSq) >< id))
aux (x,y)= do {a <- x ; b <- y ; return (a:b)}
\end{code}
\subsection*{Problema 4}