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

Problems.P15

Description

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

Synopsis

Documentation

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

Replicate the elements of a list a given number of times.

Examples

>>> repli "abc" 3
"aaabbbccc"