lens-4.19.2: Lenses, Folds and Traversals
Copyright(C) 2012-16 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
PortabilityMTPCs
Safe HaskellNone
LanguageHaskell2010

Data.Tree.Lens

Description

 
Synopsis

Documentation

root :: Lens' (Tree a) a #

A Lens that focuses on the root of a Tree.

>>> view root $ Node 42 []
42

branches :: Lens' (Tree a) [Tree a] #

A Lens returning the direct descendants of the root of a Tree

view branchessubForest