mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 01:09:03 +03:00
[ performance ] add fastUnlines to base
This commit is contained in:
parent
028f82f70c
commit
6824111fd8
@ -37,6 +37,11 @@ fastUnpack : String -> List Char
|
|||||||
export
|
export
|
||||||
fastConcat : List String -> String
|
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
|
-- This is a deprecated alias for fastConcat for backwards compatibility
|
||||||
-- (unfortunately, we don't have %deprecated yet).
|
-- (unfortunately, we don't have %deprecated yet).
|
||||||
export
|
export
|
||||||
|
Loading…
Reference in New Issue
Block a user