Sorry I hit send on the previous message before I finished -- plus I suppose
"lazy" evaluation was a bad term for it. Basically, the right side of the
operator isn't evaluated if the left side expression is true. && is simillar
in that the right hand side isn't evaluated if the left side is false.
···
On Sunday November 15 2009 7:59:31 am duxieweb wrote:
sorry just was learning ruby so have some low level questions,
in this statement:
1.upto(10) do |c| print c," " end
what's the usage of "| ... |" in ruby? can't easily understand.
Thanks.