OGC:CR 18 Creatures

3e CR 18 Creatures


3.5e CR 18 Creatures


5e CR 18 Creatures


d20M CR 18 Creatures



gollark: This is Haskell. I am assigning to variables.
gollark: Ah.
gollark: Good idea. Maybe somewhere cheaper.
gollark: Have you tried not living there?
gollark: ```haskelldoThing :: Expr -> (M.Map Int IVal, Int)doThing expr = evalState (go expr) 0 where go :: Expr -> State Int (M.Map Int IVal, Int) go (Int x) = do vcount <- update (+1) pure (M.singleton vcount (Lit x), vcount) go (Op o a b) = do (m1, c1) <- go a (m2, c2) <- go b let prev = M.union m1 m2 nxt <- update (+1) pure (M.insert nxt (ROp o c1 c2) prev, nxt)```NONE are safe from my Haskell code.
This article is issued from Dandwiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.