| Copyright | (c) Marcelo Garlet Milani 2025 |
|---|---|
| License | GPL-3 |
| Maintainer | mgmilani@pm.me |
| Stability | unstable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Nauty.Internal.Utils
Description
This module contains internal functions used by other modules. Except for test cases, you should not import this module.
Synopsis
- groupByTwo :: [a] -> [(a, a)]
- ungroupByTwo :: [(a, a)] -> [a]
Documentation
groupByTwo :: [a] -> [(a, a)] Source #
Group a list of elements two-by-two.
ungroupByTwo :: [(a, a)] -> [a] Source #
Ungroup components of each pair.