- plantPieceLengths :: Plant a -> Plant Double
- plantLength :: Plant a -> Double
- plantTotalSum :: Plant Double -> Double
- subPieceAccumulate :: Monoid m => Plant m -> Plant m
- mapGarden :: (Planted a -> Planted b) -> Garden a -> Garden b
- zipWithGarden :: (Planted a -> x -> Planted b) -> Garden a -> [x] -> Garden b
- mapPlanted :: (Plant a -> Plant b) -> Planted a -> Planted b

# Documentation

plantPieceLengths :: Plant a -> Plant DoubleSource

Puts the length of the current segment in the additional information field

plantLength :: Plant a -> DoubleSource

plantTotalSum :: Plant Double -> DoubleSource

subPieceAccumulate :: Monoid m => Plant m -> Plant mSource

mapGarden :: (Planted a -> Planted b) -> Garden a -> Garden bSource

Apply a function to each Planted in a Garden