ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2023 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P27

Description

Some solutions to Problems.P27 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

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

Given a list with the sizes of each group and list of items, write a function to return the list of disjoint groups.