1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-22 06:13:32 +02: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:
mihleonid
2024-03-11 14:42:55 +03:00
committed by GitHub
parent c2c7195779
commit 8a7cdc171f

View File

@@ -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 для кортежей выглядит так