List Comprehension
From Erlang Community
1> L = [1,2,3,10,11,12,14]. [1,2,3,10,11,12,14] 2> [X || X <- L, X > 4]. [10,11,12,14]
The expression [X || X <- L, X > 4] can be read as "Choose all X where X is a member of L and X is larger than 4", resulting in a very easy way to handle lists.

Digg It
Del.icio.us
Reddit
Facebook
Stumble Upon
Technorati

