/dhall-containerfile/Containerfile/render/textList.dhall

Copy path to clipboard

Examples

renderTextList [ "echo", "hello world" ] === "[\"echo\", \"hello world\"]"

Source

let Prelude = ../../Prelude.dhall

let renderTextList
: List Text -> Text
= \(args : List Text) ->
"["
++ Prelude.Text.concatSep
", "
(Prelude.List.map Text Text Text/show args)
++ "]"

let example0 =
assert
: renderTextList [ "echo", "hello world" ]
=== "[\"echo\", \"hello world\"]"

in renderTextList