Commit before unifying placements in rooms (in/out)
This commit is contained in:
@@ -13,6 +13,7 @@ module TreeHelp
|
||||
, applyToSubtree
|
||||
, applyToSubforest
|
||||
, treeFromPost
|
||||
, treePost
|
||||
, treeFromTrunk
|
||||
, splitTrunk
|
||||
, applyToRandomNode
|
||||
@@ -36,6 +37,11 @@ Safe. -}
|
||||
treeFromPost :: [a] -> a -> Tree a
|
||||
treeFromPost xs = treeFromTrunk xs . pure
|
||||
|
||||
{- | Creates a linear tree from a list.
|
||||
Unsafe. -}
|
||||
treePost :: [a] -> Tree a
|
||||
treePost xs = treeFromPost (init xs) (last xs)
|
||||
|
||||
{- | Creates a tree with one trunk branch,
|
||||
input as a list, that ends in another tree. -}
|
||||
treeFromTrunk
|
||||
|
||||
Reference in New Issue
Block a user