lens-2.7.0.1: Lenses, Folds and Traversals

PortabilityMTPCs
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellNone

Data.Tree.Lens

Description

 

Synopsis

Documentation

root :: Simple Lens (Tree a) aSource

A Lens that focuses on the root of a Tree.

branches :: SimpleIndexedTraversal Int (Tree a) (Tree a)Source

A Traversal of the direct descendants of the root of a Tree indexed by its position in the list of children