Provides access to 1st field of a tuple.
Methods
_1 :: Lens s t a bAccess the 1st field of a tuple (and possibly change its type).
Example1 expression (1,2) ^. _11
Example1 expression (1,2) & _1 .~ "hello"("hello",2)
Example1 expression traverseOf _1 putStrLn ("hello","world")hello((),"world")
This can also be used on larger tuples as well:
Example1 expression (1,2,3,4,5) & _1 %~ (+41)(42,2,3,4,5)
Instances11Field1, …
Field1 (Identity a) (Identity b) a bDefined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b) (a', b) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b, c) (a', b, c) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b, c, d) (a', b, c, d) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (Product f g a) (Product f' g a) (f a) (f' a)Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 ((:*:) f g p) ((:*:) f' g p) (f p) (f' p)Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b, c, d, e) (a', b, c, d, e) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b, c, d, e, f) (a', b, c, d, e, f) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b, c, d, e, f, g) (a', b, c, d, e, f, g) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b, c, d, e, f, g, h) (a', b, c, d, e, f, g, h) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.OpticsField1 (a, b, c, d, e, f, g, h, i) (a', b, c, d, e, f, g, h, i) a a'Defined in optics-core-0.4.1.1 · Data.Tuple.Optics