Copyright | Copyright (C) 2021 Yoo Chung |
---|---|
License | GPL-3.0-or-later |
Maintainer | dev@chungyc.org |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Some solutions to Problems.P26 of Ninety-Nine Haskell Problems.
Synopsis
- combinations :: Int -> [a] -> [[a]]
Documentation
combinations :: Int -> [a] -> [[a]] Source #
Generate the combinations of \(k\) distinct objects chosen from the \(n\) elements of a list.