tasty-sugar-2.0.0.1: Tests defined by Search Using Golden Answer References
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Tasty.Sugar.Iterations

Synopsis

Documentation

eachFrom :: Text -> [a] -> LogicI a Source #

Core Logic function to iteratively return elements of a list via backtracking.

combosLongToShort :: Eq a => [a] -> [[a]] Source #

Given a list, return the list of lists representing all permutations of the same length or shorter, removing any duplications, from longest to shortest (shortest being the empty list).