length

length :: [a] -> Int
base Prelude, base Data.List
O(n). length returns the length of a finite list as an Int. It is an instance of the more general Data.List.genericLength, the result type of which may be any kind of number.
length :: ByteString -> Int
bytestring Data.ByteString, bytestring Data.ByteString.Char8
O(1) length returns the length of a ByteString as an Int.
length :: ByteString -> Int64
bytestring Data.ByteString.Lazy, bytestring Data.ByteString.Lazy.Char8
O(n\c)/ length returns the length of a ByteString as an Int64
length :: Seq a -> Int
containers Data.Sequence
O(1). The number of elements in the sequence.
length :: Text -> Int
text Data.Text
O(n) Returns the number of characters in a Text. Subject to fusion.
length :: Text -> Int64
text Data.Text.Lazy
O(n) Returns the number of characters in a Text. Subject to fusion.
lengthArray0 :: (Storable a, Eq a) => a -> Ptr a -> IO Int
base Foreign.Marshal.Array
Return the number of elements in an array, excluding the terminator
lengthWord16 :: Text -> Int
text Data.Text.Unsafe, text Data.Text.Foreign
O(1) Return the length of a Text in units of Word16. This is useful for sizing a target array appropriately before using unsafeCopyToPtr.
type Length = GLsizeiptr
OpenGL Graphics.Rendering.OpenGL.GL.BufferObjects
genericLength :: Num i => [b] -> i
base Data.List
The genericLength function is an overloaded version of length. In particular, instead of returning an Int, it returns any type which is an instance of Num. It is, however, less efficient than length.
compareLength :: Text -> Int -> Ordering
text Data.Text
O(n) Compare the count of characters in a Text to a number. Subject to fusion. This function gives the same answer as comparing against the result of length, but can short circuit if the count of characters is greater than the number, and hence be more efficient.
compareLength :: Text -> Int64 -> Ordering
text Data.Text.Lazy
O(n) Compare the count of characters in a Text to a number. Subject to fusion. This function gives the same answer as comparing against the result of length, but can short circuit if the count of characters is greater than the number, and hence be more efficient.
glength :: GenericQ Int
syb Data.Generics.Schemes
Count the number of immediate subterms of the given term
gregorianMonthLength :: Integer -> Int -> Int
time Data.Time.Calendar
The number of days in a given month according to the proleptic Gregorian calendar. First argument is year, second is month.
HdrContentLength :: HeaderName
HTTP Network.HTTP.Headers
julianMonthLength :: Integer -> Int -> Int
time Data.Time.Calendar.Julian
The number of days in a given month according to the proleptic Julian calendar. First argument is year, second is month.
lineLength :: Style -> Int
pretty Text.PrettyPrint.HughesPJ, pretty Text.PrettyPrint, haskell-src Language.Haskell.Pretty
Length of line, in chars
type MatchLength = Int
regex-base Text.Regex.Base.RegexLike, regex-posix Text.Regex.Posix.String, regex-posix Text.Regex.Posix.Sequence, regex-posix Text.Regex.Posix.ByteString, regex-posix Text.Regex.Posix.ByteString.Lazy
non-negative length of a match
maxlength :: Int -> HtmlAttr
html Text.Html, xhtml Text.XHtml.Strict, xhtml Text.XHtml.Frameset, xhtml Text.XHtml.Transitional
monthLength :: Bool -> Int -> Int
time Data.Time.Calendar.MonthDay
the length of a given month in the Gregorian or Julian calendars. First arg is leap year flag
ObjectPathLength :: GLfloat -> SamplingMethod
OpenGL Graphics.Rendering.OpenGL.GLU.NURBS
PathLength :: GLfloat -> SamplingMethod
OpenGL Graphics.Rendering.OpenGL.GLU.NURBS
posixDayLength :: NominalDiffTime
time Data.Time.Clock.POSIX
86400 nominal seconds in every day
requestContentLength :: MonadCGI m => m (Maybe Int)
cgi Network.CGI
For queries which have attached information, such as HTTP POST and PUT, this is the length of the content given by the client.
rowLength :: PixelStoreDirection -> StateVar GLint
OpenGL Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelStorage
spLength :: (Graph gr, Real b) => Node -> Node -> gr a b -> b
fgl Data.Graph.Inductive.Query.SP
utcDayLength :: LeapSecondTable -> Day -> DiffTime
time Data.Time.Clock.TAI