Line circle intersection: Difference between revisions
m
→{{header|Haskell}}: One possible consolidation of the main – OP may prefer to revert.
m (→{{header|Haskell}}: Applied hlint and hindent (see https://github.com/tibbe/haskell-style-guide)) |
m (→{{header|Haskell}}: One possible consolidation of the main – OP may prefer to revert.) |
||
Line 187:
</pre>
=={{header|Haskell}}==
<lang haskell>
mapM_ putStrLn $ task (-10, 11) (10, -9) ((3, -5), 3)▼
main :: IO ()
main =
mapM_ putStrLn
concatMap
mapM_ putStrLn $ task (3, -2) (7, -2) ((3, -5), 3)▼
(("" :) . uncurryN task)
, ((6, 3), (10, 7), ((4, 2), 5))
]
task :: (Double, Double)
|