mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-26 00:31:39 +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 1 = 1
|
||||||
fib 2 = 2
|
fib 2 = 1
|
||||||
fib x = fib (x - 1) + fib (x - 2)
|
fib x = fib (x - 1) + fib (x - 2)
|
||||||
|
|
||||||
-- Pattern matching для кортежей выглядит так
|
-- Pattern matching для кортежей выглядит так
|
||||||
|
Loading…
Reference in New Issue
Block a user