polylens v0.1.0 Polylens View Source

Functions for using Polylenses to manipulate and query data

Link to this section Summary

Functions

Like get, but returns the untupled value or throws

Gets an item within the data

Like get_in, but returns untupled and throws if not ok

Like get, but takes a list of lenses to get nested data

Like set, but returns the untupled value or throws

Sets an item within the data

Like set_in, but returns untupled and throws if not ok

Like set, but takes a list of lenses to set nested data

Like update, but returns the untupled value or throws

Updates an item within the data with the provided function

Like update, but returns untupled and throws if not ok

Like update, but takes a list of lenses to update nested data

Link to this section Functions

Like get, but returns the untupled value or throws

Gets an item within the data

Like get_in, but returns untupled and throws if not ok

Like get, but takes a list of lenses to get nested data

Like set, but returns the untupled value or throws

Sets an item within the data

Link to this function set_in!(lenses, data, value) View Source

Like set_in, but returns untupled and throws if not ok

Link to this function set_in(lenses, data, value) View Source

Like set, but takes a list of lenses to set nested data

Link to this function update!(lens, data, value) View Source

Like update, but returns the untupled value or throws

Link to this function update(lens, data, func) View Source

Updates an item within the data with the provided function

Link to this function update_in!(lenses, data, value) View Source

Like update, but returns untupled and throws if not ok

Link to this function update_in(lenses, data, func) View Source

Like update, but takes a list of lenses to update nested data