A bit more docs.

This commit is contained in:
Simon Forman
2018-07-14 12:07:49 -07:00
parent f8829e25fa
commit 41b39e5977
17 changed files with 16224 additions and 65 deletions
+1 -2
View File
@@ -363,8 +363,7 @@ J('fib_gen 10 [x] times')
## Project Euler Problem Two
By considering the terms in the Fibonacci sequence whose values do not exceed four million,
find the sum of the even-valued terms.
> By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
Now that we have a generator for the Fibonacci sequence, we need a function that adds a term in the sequence to a sum if it is even, and `pop`s it otherwise.