I am new to Haskell and I am writing a function similar to min, instead of just accepting the 2 values ββthat it will take. I designed the class as shown below:
min3 :: a -> a -> a -> a
However, what would I put with the function itself after recording the number of input variables?
min3 xyz =
This is probably stupidly easy, and I missed something, but if you could help me, I would really appreciate it.
Thanks!
source share