perms([]) -> [[]]; perms(L) -> [[H|T] || H <- L, T <- perms(L--[H])].
Saturday, May 5, 2012
Expressiveness (1)
Pieces of code that make you go "wheeeee". Today's snippet is from Joe Armstrong's "Programming Erlang" (2007), p. 54: How to generate all permutations of a list:
Thursday, May 3, 2012
Post of Awesomeness
In this post, I'll collect a number of talks, papers, videos etc. that I find inspiring and worth sharing. It's mostly a personal log of things I've seen or read (or skimmed and want to dig into later ;) ). It is by no means complete and will grow over time.
Papers & documentation
Papers & documentation
- Ungar, Smith: SELF - the power of simplicity (esp. Figure 5)
- LISP 1.5 Programmer's Manual, Appendix B (LISP evaluator)
Talks
- Dave Thomas: Why Modern Application Development Sucks!
Subscribe to:
Posts (Atom)