c of
| White => r.White
| Black => r.Black
fun setColor r c x = case c of
| White => r -- #White ++ { White = x }
| Black => r -- #Black ++ { Black = x }
or at least write them more nicely.
Cheers,
Joachim
--
Joachim Breitner
m...@joachim-breitner.de
http://www.joachim-breitner.de/
___
Ur mailing list
Ur@impredicative.com
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
Hi,
Am Donnerstag, den 18.03.2021, 19:36 -0400 schrieb Adam Chlipala:
> On 3/18/21 2:20 PM, Joachim Breitner wrote:
> > > > Obviously, I need to connect the above function to a source/signal with
> > > > the game state. I found that this works, although I wonder if t
to
deal with Canvas, and maybe went for something less AJAXy and more
classical web programming with links and POSTs, I might have gotten
farther more quickly. Or maybe I just needed to practice a bit to get
up to more speed.
If I can’t resist and finish this, I’ll put the code online and let you