TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Haskell's Fixed Point Combinator

36 pointsby thedigitalengelover 13 years ago

3 comments

qntmover 13 years ago
I would be very interested to see a single real-world use for a fixed-point combinator. I have a reasonable understanding of what one does, but I still haven't got the faintest idea why you would ever need one, nor have I seen a single situation in which applying one doesn't make the situation unimaginably more complicated to understand.
评论 #3082943 未加载
评论 #3083802 未加载
评论 #3082516 未加载
FalconNLover 13 years ago
As an alternative to the zipWith method of calculating the Fibonacci series, you can use scanl, resulting in (in my opinion) an even more elegant version:<p><pre><code> fibs = fix $ (1 :) . scanl (+) 1</code></pre>
评论 #3081874 未加载
mccutchenover 13 years ago
Most of this went right over my head, but I enjoyed it nonetheless. I'm endlessly fascinated by Haskell.