Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Using let in Scheme

Name: Anonymous 2013-01-17 2:23

I remember a post a while back where the author said that it's better to avoid using binding constructs like let in languages like Scheme. I was wondering how you'd rewrite something like this:
(let ((s (find (lambda (a) (char=? x (first a))) *translation-list*)))
 (if s (second s) x))

Name: LISPPER 2013-01-17 2:43

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

((lambda (s) (if s (second s) x))
 (find (lambda (a) (char=? x (first a))) *translation-list*))

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iF4EAREKAAYFAlD3q30ACgkQGRQwWY30ng3VUQD/fZ+N+f+w75LVaOvYvpVbzgdd
tJCesQNtn3eNQ6iPoC8A/0XPtyxx63gBK4divRG3ZxwSVaIrMfUtrj9N2DONm8el
=h5wx
-----END PGP SIGNATURE-----

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List