L-seed-0.2: Plant growing programming game

Lseed.Data.Functions

Synopsis

Documentation

plantPieceLengths :: Plant a -> Plant DoubleSource

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

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

Apply a function to each Planted in a Garden

zipWithGarden :: (Planted a -> x -> Planted b) -> Garden a -> [x] -> Garden bSource

Apply a function to each Planted in a Garden, with an extra argument from a list

You need to make sure that the list is long enough!

mapPlanted :: (Plant a -> Plant b) -> Planted a -> Planted bSource

Apply a function to the Plant in a Planted