symbolic-base-0.1.0.0: ZkFold Symbolic compiler and zero-knowledge proof protocols
Safe HaskellSafe-Inferred
LanguageHaskell2010

ZkFold.Prelude

Documentation

log2ceiling :: (Integral a, Integral b) => a -> b Source #

length :: Foldable t => t a -> Natural Source #

take :: HasCallStack => Natural -> [a] -> [a] Source #

drop :: Natural -> [a] -> [a] Source #

splitAt :: Natural -> [a] -> ([a], [a]) Source #

iterateM :: Monad m => Natural -> (a -> m a) -> a -> m a Source #

replicate :: Natural -> a -> [a] Source #

replicateA :: Applicative f => Natural -> f a -> f [a] Source #

zipWithDefault :: (a -> b -> c) -> a -> b -> [a] -> [b] -> [c] Source #

elemIndex :: Eq a => a -> [a] -> Maybe Natural Source #

(!!) :: [a] -> Natural -> a Source #

(!) :: Ord k => Map k a -> k -> a Source #

writeFileJSON :: ToJSON a => FilePath -> a -> IO () Source #

assert :: Show a => Bool -> a -> x -> x Source #

genSubset :: Natural -> [a] -> Gen [a] Source #