Skip to main content
11 events
when toggle format what by license comment
May 1, 2017 at 13:57 comment added maple_shaft @nimi Nice job, golfed 3 bytes!
May 1, 2017 at 13:56 history edited maple_shaft CC BY-SA 3.0
Used any f [] instead of or function applicative
Apr 30, 2017 at 21:15 comment added nimi Back to golfing tips: or $ f <$> list is any f list: any(elem$read y)[...].
Apr 30, 2017 at 21:12 comment added nimi Remember: everything used must predate the challenge, so uploading a custom module specifically made for the task won't work. Yes crypto things, image processing, graphic display, etc. are usually done with less common modules. As said, Data.Lists has been used in other challenges, but feel free to stick to the core modules only.
Apr 30, 2017 at 20:58 comment added maple_shaft @nimi Well honestly I think if I can just download any package from cabal, I could just write a function that solves the problem, upload it, then import the module in my solution. Technically I could cheat. But then certain challenges cant be done with basic GHC either like crypto stuff so I dont know.
Apr 30, 2017 at 15:54 comment added nimi As far as I know we still don't have consensus on what counts as a standard module. There are a couple of Haskell answers around here which use Data.Lists. It is even mentioned in the golfing tips for Haskell - nobody has complained so far.
Apr 30, 2017 at 12:29 comment added maple_shaft @nimi Is it against golfing rules if I have to download and install non standard modules? I dont think Data.Lists is standard in GHC.
Apr 30, 2017 at 8:50 comment added nimi If you import Data.Lists instead of Data.List, you can use: y<-tail$powerslice x.
Apr 28, 2017 at 16:51 history edited maple_shaft CC BY-SA 3.0
deleted 2 characters in body
Apr 28, 2017 at 16:44 history edited maple_shaft CC BY-SA 3.0
Removed pattern matching empty list for h
Apr 28, 2017 at 16:38 history answered maple_shaft CC BY-SA 3.0