purescript-contrib / purescript-profunctor-lenses

Pure profunctor lenses
MIT License
144 stars 51 forks source link

added toArrayOf and toArrayOfOn #105

Closed dwhitney closed 5 years ago

dwhitney commented 5 years ago

What does this pull request do?

I've added two functions Data.Lens.Fold (toArrayOf, toArrayOfOn) since Array is a fairly common data structure compared to List, which is already supported

Where should the reviewer start?

The functions are in Fold.purs and then re-exported in Data.Lens

How should this be manually tested?

I added an example in test/Main.purs that combines a couple of Prisms with traversed

thomashoneyman commented 5 years ago

Thanks, @dwhitney!