Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
95 views

Generating the N-bonacci numbers

I'm new to Haskell, and this is one of the more interesting programs I've made with it so far. I understand there are already solutions to this problem that use much less code, but to me this one ...
fluffyyboii's user avatar
3 votes
1 answer
403 views

Fibonacci calculator in Haskell

I'm just starting to look into Haskell. I've written a naive Fibonacci implementation, and I've also written a more advanced one that uses tail-call recursion for efficiency. ...
cbojar's user avatar
  • 2,742
1 vote
1 answer
289 views

Project Euler problem 2 in Haskell

I have just started Haskell, and I want to check if my code is following the spirit of the language. By considering the terms in the Fibonacci sequence whose values do not exceed four million, find ...
Andrew Vershinin's user avatar
14 votes
3 answers
1k views

Using Fibonacci sequence to generate musical melodies

I recently started picking up the Haskell programming language. I've managed to learn other languages rather quickly, but I'm still having a difficult time grasping some of the basics of Haskell. I ...
Jake Rieger's user avatar
1 vote
0 answers
245 views

Over-engineered fizzbuzz

I've got this fizzbuzz project I am using for a blog series, among other things. In this version, the fizzbuzz function is fed from a Fibonacci generator. I'm particularly concerned with the ...
Michael Litchard's user avatar
7 votes
1 answer
576 views

Implement Fibonacci with `iterate`

I implemented the Fibonacci sequence using iterate. ...
Kevin Meredith's user avatar
6 votes
1 answer
257 views

Evaluating Fibonacci-sequence-based recurrence relation (SPOJ Flibonakki)

I have a function fib2 which returning two values as Tuple but I want to print the product of tuples returned by function fib2. I am new to Haskell so please ...
Lakshman's user avatar
  • 258
2 votes
1 answer
396 views

O(n) Fibonacci?

I attempted to write an \$O(N)\$ Fibonacci. ...
Kevin Meredith's user avatar