Browse thread
Difference between "let rec" and just "let"?
- circ ular
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | circ ular <circularfunc@g...> |
| Subject: | Difference between "let rec" and just "let"? |
what is the difference between "let rec" and just "let"? what does rec stand for? are the following defintions exactly the same? at least they seem to give the same results... # let rec cube x = x*x*x;; val cube : int -> int = <fun> # cube 12;; - : int = 1728 # let cubex x = x*x*x;; val cubex : int -> int = <fun> # cubex 12;; - : int = 1728 #