Files
newt/tests/Section.newt
Steve Dunham c3e70c9ecc
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
operator sections
2026-01-31 13:21:23 -08:00

21 lines
281 B
Agda

module Section
import Prelude
-- got infix in prefix position
add : Int Int Int
add = (+)
add2 : Int Int
add2 = (+ 2)
-- trailing operator
add2' : Int Int
add2' = (2 +)
main : IO Unit
main = do
printLn $ (+) 2 3
printLn $ (+ 3) 2
printLn $ (2 +) 3