Idris2/tests/prelude/operators001/Test.idr
observant 1e6e125190
Add pipeline operators (#3284)
* 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>
2024-06-06 10:59:30 +01:00

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']