Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
real-dice RealDice.Generate.RawData This is raw random data from human interaction with the physical world, converted to a list of Bools
-
real-dice RealDice.Generate.RawData This is raw random data from human interaction with the physical world, truncated to have a prime number of elements, and converted to a list of Bools
getBoolByIndex :: Int -> [Bool] -> Boolreal-dice RealDice.Manipulate.GetValueFromRNGTable Gets a boolean value from a list by index, looping back to the beginning if the index is out of bounds After looping over the list once, we flip the values of the elements so that we can use an odd list length while still having an even distribution of True and False values This is used to get an element from a randomized table of booleans
Examples
>>> getBoolByIndex 2 [True, False, False, True, True] False >>> getBoolByIndex 5 [True, False, False, True, True] False >>> getBoolByIndex 6 [True, False, False, True, True] True >>> getBoolByIndex (-1337) [True, False, True, False, True] False
randomizeWithCustomBools :: [Int] -> [Bool] -> [Int]real-dice RealDice.Manipulate.RandomizeList Randomizes the order of a list of integers using a custom list of booleans
Examples
>>> randomizeWithCustomBools [1, 2, 3, 4, 5] [True, False, False, True, True] [5,4,1,2,3]
-
rec-def Data.Recursive.Bool Like Bool, but admits recursive definitions, preferring the least solution.
module Data.Recursive.
DualBool The type RDualBool is like Bool, but allows recursive definitions:
>>> :{ let x = RDB.true y = x RDB.&& z z = y RDB.|| RDB.false in RDB.get x :} TrueThis finds the greatest solution, i.e. prefers True over False:>>> :{ let x = x RDB.&& y y = y RDB.&& x in (RDB.get x, RDB.get y) :} (True,True)Use RBool from Data.Recursive.Bool if you want the least solution.-
rec-def Data.Recursive.DualBool Like Bool, but admits recursive definitions, preferring the greatest solution.
-
rec-def Data.Recursive.Internal Like Bool, but admits recursive definitions, preferring the least solution.
-
rec-def Data.Recursive.Internal No documentation available.
-
rec-def Data.Recursive.Internal Like Bool, but admits recursive definitions, preferring the greatest solution.