You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- The void function takes a functor and replaces its value with Unit.-- In the example, it is used to make main conform with its signature.main::EffectUnit
main = void $ unsafePartial doJust canvas <- getCanvasElementById "canvas"
ctx <- getContext2D canvas
void
is not needed in this case b/crect
has already the desired result type:Similar in other examples.
void
is only needed inExample.LSystem
.The text was updated successfully, but these errors were encountered: