Hoogle Search
Within LTS Haskell 24.22 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
.&.~ ) :: Bits a => ASetter s t a a -> a -> s -> tlens Data.Bits.Lens Bitwise .&. the target(s) of a Lens or Setter.
>>> _2 .&.~ 7 $ ("hello",254) ("hello",6)(.&.~) :: Bits a => Setter s t a a -> a -> s -> t (.&.~) :: Bits a => Iso s t a a -> a -> s -> t (.&.~) :: Bits a => Lens s t a a -> a -> s -> t (.&.~) :: (Monoid a, Bits a) => Traversal s t a a -> a -> s -> t
(
<.&.= ) :: (MonadState s m, Bits a) => LensLike' ((,) a) s a -> a -> m alens Data.Bits.Lens Modify the target(s) of a Lens' (or Traversal') by computing its bitwise .&. with another value, returning the result (or a monoidal summary of all of the results traversed).
>>> runState (_1 <.&.= 15) (31,0) (15,(15,0))
(<.&.=) :: (MonadState s m, Bits a) => Lens' s a -> a -> m a (<.&.=) :: (MonadState s m, Bits a, Monoid a) => Traversal' s a -> a -> m a
(
<.&.~ ) :: Bits a => LensLike ((,) a) s t a a -> a -> s -> (a, t)lens Data.Bits.Lens Bitwise .&. the target(s) of a Lens or Traversal, returning the result (or a monoidal summary of all of the results).
>>> _2 <.&.~ 7 $ ("hello",254) (6,("hello",6))(<.&.~) :: Bits a => Iso s t a a -> a -> s -> (a, t) (<.&.~) :: Bits a => Lens s t a a -> a -> s -> (a, t) (<.&.~) :: (Bits a, Monoid a) => Traversal s t a a -> a -> s -> (a, t)
(
<<.&.= ) :: (MonadState s m, Bits a) => LensLike' ((,) a) s a -> a -> m alens Data.Bits.Lens Modify the target(s) of a Lens', (or Traversal') by computing its bitwise .&. with another value, returning the original value (or a monoidal summary of all the original values). When you do not need the old value, (.&.=) is more flexible.
>>> runState (_1 <<.&.= 15) (31,0) (31,(15,0))
(<<.&.=) :: (MonadState s m, Bits a) => Lens' s a -> a -> m a (<<.&.=) :: (MonadState s m, Bits a, Monoid a) => Traversal' s a -> a -> m a
(
<<.&.~ ) :: Bits a => Optical' (->) q ((,) a) s a -> a -> q s (a, s)lens Data.Bits.Lens Bitwise .&. the target(s) of a Lens or Traversal, and return the original value, or a monoidal summary of the original values. When you do not need the old value, (.&.~) is more flexible.
>>> _2 <<.&.~ 7 $ ("hello", 254) (254,("hello",6))(<<.&.~) :: Bits a => Iso s t a a -> a -> s -> (a, t) (<<.&.~) :: Bits a => Lens s t a a -> a -> s -> (a, t) (<<.&.~) :: (Bits a, Monoid a) => Traversal s t a a -> a -> s -> (a, t)
(
<&> ) :: Functor f => f a -> (a -> b) -> f bgogol-core Gogol.Prelude Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
<&> ) :: Functor f => f a -> (a -> b) -> f bmicrolens Lens.Micro Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
<&> ) :: Functor f => f a -> (a -> b) -> f bbase-compat Data.Functor.Compat Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
.&&. ) :: JStgExpr -> JStgExpr -> JStgExprghc GHC.JS.Make JS infix bit operators
(
.&. ) :: Bits a => a -> a -> aghc GHC.Prelude.Basic No documentation available.