Commit Graph

33 Commits (main)

Author SHA1 Message Date
annieversary b12bcfc92a improve ergonomics for the derive macro generated api 2022-01-17 15:34:20 +00:00
annieversary b86d5ccb27 clippy 2021-11-18 12:21:55 +00:00
annieversary 3d8b58202d add test 2021-11-17 16:39:51 +00:00
annieversary cc9c90202b implement with_ref stuff, so you can use field lenses with a struct and a ref 2021-11-17 16:02:07 +00:00
annieversary 4a1f398fe3 replace Box with Arc so lenses are clonable 2021-11-15 22:21:17 +00:00
annieversary 2bf792d0f5 add Optics proc macro 2021-11-15 13:11:46 +00:00
annieversary 0ec197ff1e add _init and _last 2021-11-12 19:24:25 +00:00
annieversary c3d76f109f make adding lenses be const 2021-11-12 13:09:23 +00:00
annieversary ca9d8de37f add prelude 2021-11-12 12:44:20 +00:00
annieversary e6ac6d85fa add third, fourth, fifth lenses 2021-11-12 11:17:33 +00:00
annieversary fa60e84466 add _head and _tail traversals 2021-11-12 11:17:11 +00:00
annieversary 16d7190a1d add field_lens! macro 2021-11-11 22:32:59 +00:00
annieversary 0d91633f2b add example 2021-11-11 22:32:45 +00:00
annieversary 3d82c58a51 prism + lens 2021-11-11 16:07:46 +00:00
annieversary 231f68970f move combination tests 2021-11-11 14:50:21 +00:00
annieversary bf85419c16 fix prisms 2021-11-11 14:47:55 +00:00
annieversary 529b628260 m 2021-11-11 14:16:37 +00:00
annieversary 6b339ddde1 combination of traversals 2021-11-11 13:50:54 +00:00
annieversary f73c2ad5b6 split optics wrapper type into Lens, Traversal, Prism 2021-11-11 13:29:43 +00:00
annieversary e5a9293ec2 add traversals 2021-11-11 12:56:54 +00:00
annieversary e6163ea626 examples and tests 2021-11-11 11:16:04 +00:00
annieversary 2c0a770f9f add to, lens 2021-11-11 11:08:29 +00:00
annieversary 61484339f9 change lenses to take a ref 2021-11-11 10:39:47 +00:00
annieversary ea617b8789 add prisms 2021-11-05 19:35:26 +00:00
annieversary 037440c845 rename lens to optics 2021-11-05 15:55:49 +00:00
annieversary 30996082ac uh 2021-11-05 15:28:34 +00:00
annieversary 5b47f90348 oops 2021-11-05 14:23:37 +00:00
annieversary c00229da08 fns, example, copy, readme 2021-11-05 14:22:59 +00:00
annieversary 4a4751dcb2 add _1, impl combinations 2021-11-05 13:27:34 +00:00
annieversary fbf0bfff21 add arrays to _0 2021-11-05 12:09:20 +00:00
annieversary d76541fbc5 change over to not take a ref, rename id to identity 2021-11-05 12:05:55 +00:00
annieversary 7bac8ee9ec add set, rename first, add id 2021-11-05 11:03:17 +00:00
annieversary e62f421fa6 init 2021-11-05 10:12:03 +00:00