[ performance ] add fastUnlines to base

This commit is contained in:
stefan-hoeck 2021-03-26 11:45:07 +01:00 committed by G. Allais
parent 028f82f70c
commit 6824111fd8

View File

@ -37,6 +37,11 @@ fastUnpack : String -> List Char
export
fastConcat : List String -> String
-- This uses fastConcat internally so it won't compute at compile time.
export
fastUnlines : List String -> String
fastUnlines = fastConcat . intersperse "\n"
-- This is a deprecated alias for fastConcat for backwards compatibility
-- (unfortunately, we don't have %deprecated yet).
export