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

Problems.P14

Description

Part of Ninety-Nine Haskell Problems. Some solutions are in Solutions.P14.

Synopsis

Documentation

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

Duplicate the elements of a list.

Examples

>>> dupli [1, 2, 3]
[1,1,2,2,3,3]