PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
thinstation.conf.buildtime
1 sec ago
well265 ver1.7.3
Lua | 9 sec ago
Untitled
18 sec ago
Sfrd25087an
19 sec ago
fuck
20 sec ago
Untitled
Lua | 21 sec ago
Untitled
22 sec ago
Untitled
24 sec ago
Untitled
By: a guest on
Feb 7th, 2012
| syntax:
OCaml
| size: 0.09 KB | hits: 117 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
let
rec
fibnum n
=
match
n
with
|
0
->
0
|
1
->
1
|
n
->
fibnum
(
n
-
1
)
+
fibnum
(
n
-
2
)
;;
create a
new version
of this paste
RAW Paste Data
let rec fibnum n = match n with | 0->0 | 1->1 | n->fibnum(n-1) + fibnum(n-2);;