Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
antiismist
on March 11, 2009
|
parent
|
context
|
favorite
| on:
Lisp after Python after Lisp
Instead of declaring a local function, you can use let (
http://docs.plt-scheme.org/reference/let.html
)
e.g.:
> (let fac ([n 10]) (if (zero? n) 1 (* n (fac (sub1 n))))) 3628800
danprager
on March 12, 2009
[–]
Yes, "named let" is lovely, but perhaps less obvious for the non-cognoscenti. It also doesn't translate into Python, etc.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
e.g.: