There are varargs in Haskell, but they aren't as natural as in Python; and usually rely on various amounts of type level trickery.
Implementing a vararg printf in Haskell is a popular enough exercise.
A relatively common examples in practice is the testing library QuickCheck: your properties (ie tests) can take any number of arguments that the library fills with samples inputs.
Implementing a vararg printf in Haskell is a popular enough exercise.
A relatively common examples in practice is the testing library QuickCheck: your properties (ie tests) can take any number of arguments that the library fills with samples inputs.