HGraph.Utils
mhead :: [a] -> Maybe a Source #
randomN :: (Random a, RandomGen g) => a -> a -> State g a Source #
choose :: (Eq t, Num t) => t -> [a] -> [[a]] Source #
Lists all subsets of s of size exactly k.
s
k
guessOne :: (t -> t -> Maybe a) -> (t -> t -> t) -> t -> [t] -> Maybe a Source #