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.P04

Description

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

Synopsis

Documentation

myLength :: [a] -> Int Source #

Find the number of elements of a list.

Examples

>>> myLength [123, 456, 789]
3
>>> myLength "Hello, world!"
13