mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-25 16:23:37 +03:00
Update haskell-ru.html.markdown (#4696)
"fib" is mentioned three times in this document. First and last time fib 2 = 1. I suppose that in the second time fib 2 = 2 was a typo.
This commit is contained in:
parent
c2c7195779
commit
8a7cdc171f
@ -172,7 +172,7 @@ fib x
|
||||
первое определение, к образцу которого
|
||||
"подойдет" набор аргументов -}
|
||||
fib 1 = 1
|
||||
fib 2 = 2
|
||||
fib 2 = 1
|
||||
fib x = fib (x - 1) + fib (x - 2)
|
||||
|
||||
-- Pattern matching для кортежей выглядит так
|
||||
|
Loading…
Reference in New Issue
Block a user