[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [approve] Function-block change to return function result, and accept arguments




On Dec 9, 2004, at 3:00 PM, James Harkins wrote:

These guys want to do the same thing in a function:

meth = { |break, a|
  a.isEven.if({ break.value(a) });
  // processing
  result
};

meth = {|a| block {|break|
	a.isEven.if {break.(a) }
	// processing
	result
}};


meth.block(someValue)