Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • \$\begingroup\$ Nice answer. I don't know Haskell, but the code seems rather different from the other Haskell answer. PS: That other Haskell answer is actually 110 bytes after the golf-tips in @nimi's comment. Regardless, this is a nice alternative Haskell answer, so +1 from me. \$\endgroup\$ Commented Aug 17, 2018 at 13:51
  • 1
    \$\begingroup\$ It seems like list comprehensions were the better tool for this challenge. I was able to golf your solution to 106 bytes by reducing the total number of functions. Feel free to adapt these changes. \$\endgroup\$ Commented Aug 17, 2018 at 15:35