Generics.Putlenses.Examples.Examples

Lists

unzipPut

mapPut

unfoldrPut

unfoldrsPut

Constructor/destructor putlenses for lists

nilPut

consPut

unnilPut

unconsPut

unheadPut

untailPut

keepfstPut2

wrapPut

unwrapPut

example of automatically deriving constructor/destructor putlenses for binary trees

data Tree a

unnodePut

nodePut

unemptyPut

emptyPut

List concatenation

catPut

exCatPut1

exCatPut2

exCatPut3

exCatPut4

catPutN

catPutN'

catPut2

exCatPut21

exCatPut22

exCatPut23

exCatPut24

catPutP

catPutSame

exCatPutSame1

exCatPutSame2

exCatPutSame3

catPutPred

exCatPutPred1

exCatPutPred2

exCatPutPred3

exCatPutPred4

filterlPut

filterrPut

filterPut

filterleftPut

filterrightPut

Integers

succPut

predPut

Naturals

data Nat

unsuccNPut

succNPut

unzeroNPut

zeroNPut

natPut

int

nat

List length

lengthNatPut

exLengthNatPut1

exLengthNatPut2

exLengthNatPut3

List lookup

embedAtPut

embedAtPut1

embedAtPut2

embedAtPut2'

embedAtPut3

embedAtPut3'

exEmbedAtPut1

exEmbedAtPut2

exEmbedAtPut3

exEmbedAtPut4

exEmbedAtPut5

embedAtPut4

splitAtPut

exEmbedAtPut41

exEmbedAtPut42

exEmbedAtPut43

List summation

splitPut

summandsPut1

summandsPut2

summandsPut3

summandsPut3'

summandsPut4

summandsPut4'

exSummandsPut1

exSummandsPut2

exSummandsPut3

exSummandsPut4

exSummandsPut5

exSummandsPut6

exSummandsPut7

Replicate

replicatePut

exReplicatePut1

exReplicatePut2

replicateListPut

recoverzerosPut

splitListPut

exReplicateListPut1

exReplicateListPut2

Halve

halvePut

exHalvePut1

exHalvePut2

halvePut2

halvePut2'

exHalvePut21

exHalvePut22

exHalvePut23

halvePut3

halvePut3'

exHalvePut31

exHalvePut32

exHalvePut33

isumPut

subtractPut

exIsumPut1

exIsumPut2

Sorting

iunsortPut1

delPut1

iunsortPut2

delPut2

exIunsortPut1

exIunsortPut2

exIunsortPut3

qsortPut

partitionPut

catPutNonEmptyRight

exQsortPut1

exQsortPut2

exQsortPut3

positionsPut

positionsPut'

positionsPut2

positionsPut2'

exPositions1

exPositions2

exPositions3

Exception handling

appendWithSepPut

readPut

unwordsIntBool

unwordsPut

unfoldr1Put

Maximum segment sum

type Pos

segments

mssPut

mssPut'

maxSumSegsPut

maxSumSegsPut'

lookupSegPut

lookupIntMapPut

maxPut

fromListPut

toListPut

exMssPut1

exMssPut2

exMssPut3

exMssPut4

exMssPut5