aboutsummaryrefslogtreecommitdiff
path: root/nfib.icl
blob: bf297d380abc3afdff478deaea3913498b666b39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
module nfib

import StdEnv

nfib :: !Int -> Int
nfib n
	| n < 2
		= 1
		= nfib (n-2) + nfib (n-1) + 1

Start = nfib 43