parse_trans/examples/lc.erl

8 lines
111 B
Erlang
Raw Normal View History

2013-12-12 13:20:47 +00:00
-module(lc).
-export([f/1]).
f(X) ->
[fun(_) ->
erlang:now()
end || {Y1,Y2} <- [{1,a},{2,b}]].