# [Text] -> Text

*O(n)* Concatenate a list of Texts.
*O(c)* Convert a list of strict Texts into a lazy Text.
*O(n)* Joins lines, after appending a terminating newline to each.

*O(n)* Joins words using single space characters.

*O(n)* The intercalate function takes a Text and a list of Texts and concatenates the list after interspersing the first argument between each element of the list.
*O(n)* The transpose function transposes the rows and columns of its Text argument. Note that this function uses pack, unpack, and the list version of transpose, and is thus not very efficient.
maximum returns the maximum value from a list, which must be non-empty, finite, and of an ordered type. It is a special case of maximumBy, which allows the programmer to supply their own comparison function.
minimum returns the minimum value from a list, which must be non-empty, finite, and of an ordered type. It is a special case of minimumBy, which allows the programmer to supply their own comparison function.
the ensures that all the elements of the list are identical and then returns that unique element
Extract the first element of a list, which must be non-empty.

Extract the last element of a list, which must be finite and non-empty.

*O(n)* Make a distinct copy of the given string, sharing no storage with the original string.
As an example, suppose you read a large string, of which you need only a small portion. If you do not use copy, the entire original array will be kept alive in memory by the smaller string. Making a copy "breaks the link" to the original array, allowing it to be garbage collected if there are no other live references to it.
*O(c)* Convert a strict Text into a lazy Text.
*O(1)* Returns all but the last character of a Text, which must be non-empty. Subject to fusion.
Check the invariant lazily.

*O(n)* reverse t returns the elements of t in reverse order.
*O(n)* Reverse the characters of a string. Subject to fusion.

*O(n)* Remove leading and trailing white space from a string. Equivalent to:
> dropAround isSpace

*O(n)* Remove trailing white space from a string. Equivalent to:
> dropWhileEnd isSpace

Show more results