Generics.Putlenses.Examples.Examples

Lists

unzipPut

mapPut

unfoldrPut

foldrPut

mfilterPut

unfoldrsPut

Constructor/destructor putlenses for lists

nilPut

consPut

unnilPut

unconsPut

unheadPut

untailPut

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

catPutSameMb

exCatPutSame1

exCatPutSame2

exCatPutSame3

catPutPred

catPutPredMb

exCatPutPred1

exCatPutPred2

exCatPutPred3

exCatPutPred4

filterlPut

filterrPut

partitionPut

filterleftPut

filterPut

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

halvePutMb

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

qpartitionPut

catPutNonEmptyRight

exQsortPut1

exQsortPut2

exQsortPut3

positionsPut

positionsPut'

positionsPut2

positionsPut2'

exIntitions1

exIntitions2

exIntitions3

Exception handling

appendWithSepPut

readPut

unwordsIntBool

unwordsPut

unfoldr1Put