mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-28 05:32:03 +03:00
Sidestep the question of printing floats.
This commit is contained in:
parent
04a79d0a69
commit
4baa09a7de
@ -101,8 +101,8 @@ main = do
|
||||
-- prints 17.64
|
||||
printLn $ pt.x.squared
|
||||
|
||||
-- prints [1.0, 3.0]
|
||||
printLn $ map (.x) [MkPoint 1 2, MkPoint 3 4]
|
||||
-- prints [1.1, 4.2]
|
||||
printLn $ map (.x) [MkPoint 1.1 2.5, MkPoint 4.2 6.3]
|
||||
|
||||
-- parses but does not typecheck
|
||||
-- parses as: map.x [MkPoint 1 2, MkPoint 3 4]
|
||||
|
Loading…
Reference in New Issue
Block a user