hsudoku-0.1.1.0: Sudoku game with a GTK3 interface

Copyright(c) Marcel Moosbrugger 2017
LicenseMIT
Safe HaskellSafe
LanguageHaskell2010

Util

Description

This modules provides generic utility functions for lists.

Synopsis

Documentation

nodups :: Eq a => [a] -> Bool Source #

Is true iff a list has no duplicate elements.

groupBy :: Int -> [a] -> [[a]] Source #

Splits a list into multiple lists of a given length.

ungroup :: [[a]] -> [a] Source #

The reverse operation of groupBy.

single :: [a] -> Bool Source #

Is true iff a given list contains exactly one element.

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

Removes the elements of the first list from the second list.