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-21 02:31:50 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
dd991861c1
Idris2
/
tests
/
base
/
data_string_lines001
/
expected
9 lines
78 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"]
["ab"]
["ab", "cd"]
["ab", "cd"]
["a", "b"]
["a", "b"]
["", "", ""]
Reference in New Issue
Copy Permalink