From: ATOM Date: 2006-01-13T18:38:05+09:00 Subject: Re: ABS |ruby| In math we also have the set-notation like: A = { a | a > 0 } which means something like: A is set of elements, greater then 0... and so on. This could also be read similar to block-syntax. We get a set of elements on which we perform some operations (like map+lambda call in funcional languages, anonymous function + set of elements). regards. Alex Combas wrote: > Quick question, > > In math the absolute value is typically > the double pipe: > |x| = 27 > > This reminds me stuff like: > Stuff.each { |x| 'h puts ello '+x } > > Are these two related in any way? > I dont really see why they would be related but thought it was an > interesting coincidense nonetheless. > > -- > Alex Combas > http://noodlejunkie.blogspot.com/