Early in the morning, playing with Erlan, I got a curious result:
-module(bucle01). -compile(export_all). for(N) when N >=0 -> lists:seq(1,N). for(L,N) when L =< N -> lists:seq(L,N); for(L,N) when L > N -> lists:reverse(for(N,L)).
When I run the program, I see the following:
> bucle01:for(1,10). [1,2,3,4,5,6,7,8,9,10] > bucle01:for(10,1). [10,9,8,7,6,5,4,3,2,1] >bucle01:for(7,10). [7,8,9,10] >bucle01:for(8,10). "\b\t\n" %% What that !?! >bucle01:for(10,8). "\n\t\b" %% After all it has some logic !
Any "Kool-Aid" for "Don't Drink Too Much" please?