Quantcast
Channel: Haskell - data type functions - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Dan D. for Haskell - data type functions

$
0
0

You mean something like:

addLengths x y = INCH ((convert x) + (convert y))

There might be more parentheses than required.

The use of the INCH constructor is not a type cast.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>