netceteragroup / skele

Architectural framework that assists building data-driven apps with React or React Native.
MIT License
163 stars 32 forks source link

Implement zip.editAt(motion, editfn, loc) #80

Closed ognen closed 5 years ago

ognen commented 6 years ago

In the module 'zip' implement the function editAt with the signature

editAt :: motionFn -> editFn -> loc -> loc

The function takes a location, performs the specified motion (motionFn), edits the value at that location using the editFn, and then moves back to the starting position, returning the changed tree.

ognen commented 6 years ago

Implementation hint (with a constraint, but I think it should be sufficient):