difference between foldLeft and reduceLeft in Scala

Few things to mention here, before giving the actual answer: Your question doesn’t have anything to do with left, it’s rather about the difference between reducing and folding The difference is not the implementation at all, just look at the signatures. The question doesn’t have anything to do with Scala in particular, it’s rather about … Read more

Why is Haskell (GHC) so darn fast?

I agree with Dietrich Epp: it’s a combination of several things that make GHC fast. First and foremost, Haskell is very high-level. This enables the compiler to perform aggressive optimisations without breaking your code. Think about SQL. Now, when I write a SELECT statement, it might look like an imperative loop, but it isn’t. It … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)