[Haskell-cafe] Arithmetic expressions with random operators
Mahmoud Murad
mahmoudmurad92 at gmail.com
Thu Jun 8 13:03:55 UTC 2017
I have the following problem, I want to randomly generate arithmetic
expressions based on a number, for example:
if I have n = 3, then the expression must have 3 operators like this
(4)*(((3+5)-2)).
Any advice or hint? I am relatively new to Haskell.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170608/0407d062/attachment.html>
More information about the Haskell-Cafe
mailing list