plutus-onchain-0.1.2.0
Safe HaskellTrustworthy
LanguageHaskell2010

Plutus.OnChain.Bits

Contents

Description

Bit operations.

Synopsis
  • xor :: Integer -> Integer -> Integer
  • odd :: Integer -> Bool
  • even :: Integer -> Bool

Functions

xor Source #

Arguments

:: Integer

The first integer.

-> Integer

The second integer.

-> Integer

The bitwise exclusive-or.

Compute the bitwise exclusive-or of two non-negative integers.

odd Source #

Arguments

:: Integer

The integer.

-> Bool

Whether the integer is odd.

Test whether a non-negative integer is odd.

even Source #

Arguments

:: Integer

The integer.

-> Bool

Whether the integer is even.

Test whether a non-negative integer is even.