query
On this page

concatLines

lib.strings.concatLines

Docs pulled from | This Revision | 10 minutes ago


Concatenate a list of strings, adding a newline at the end of each one. Defined as concatMapStrings (s: s + "\n").

Inputs

list
List of strings. Any element that is not a string will be implicitly converted to a string.

Type

concatLines :: [string] -> string

Examples

lib.strings.concatLines usage example

concatLines [ "foo" "bar" ]
=> "foo\nbar\n"

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

concatLines = concatMapStrings (s: s + "\n");