mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 10:02:03 +03:00
1e6e125190
* Add pipeline operators * Fix tests * Change fixity, add tests * [ fix ] silence actual fixity --------- Co-authored-by: itmuckel <18561536+itmuckel@users.noreply.github.com> Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
9 lines
233 B
Idris
9 lines
233 B
Idris
|
|
testPipelineRight : Bool
|
|
testPipelineRight =
|
|
([[1], [2], [3]] |> join |> map (* 2)) == [2,4,6]
|
|
|
|
testPipelineLeft : Bool
|
|
testPipelineLeft =
|
|
(unpack <| "hello" ++ "world") == ['h', 'e', 'l', 'l', 'o', 'w', 'o', 'r', 'l', 'd']
|