This website requires JavaScript.
Explore
Help
Sign In
idris-lang
/
Idris2
Watch
1
Star
1
Fork
0
You've already forked Idris2
mirror of
https://github.com/idris-lang/Idris2.git
synced
2024-12-19 09:12:34 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
ac266b73f8
Idris2
/
tests
/
base
/
data_string_unlines001
/
expected
7 lines
50 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Remove trivial testing input files
2023-08-29 19:02:01 +03:00
"<>"
Change semantics of lines and unlines function to match Haskell and other languages (#1585) * Add trailing newline on non-empty list in unlines There are several reasons to do that: * a line in a text file is something which ends with newline, and the last line is not special * `unlines []` should be different from `unlines [""]` * `unlines (a ++ b) = unlines a ++ unlines b` * Haskell does it * Change lines function behaviour
2021-07-17 16:54:23 +03:00
"<ab\n>"
"<a\nb\n>"
"<>"
"<ab\n>"
"<a\nb\n>"
Reference in New Issue
Copy Permalink