Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I've had pretty much the same experience, which I put down to my lack of experience(!). One of the fun things to work with in Haskell is infinite lists: you can do some amazingly powerful things in a tiny piece of code. The "iterate" function is quite fun in this sort of setting: for example (Haskell newbie code alert...)

    map head (iterate(\y->[x| x<-y, (x `mod` head(y) /= 0)]) [2..])

    You'll probably spot the nature of the output pretty quickly (in case it's not clear from the input), which leads to