stevedekorte/io — Issue #151: no Block callWithArgList
Author: mcandre
Created: 2011-10-12 18:07:52+00:00
State: open

It's handy to be able to apply a block with unknown arity over a dynamic list. [Paragon](http://blurgle.blogspot.com/2006/08/converting-lists-into-messages-and.html) managed to achieve this with a little snippet:

getSlot("Block") callWithArgList := method(argList,
getSlot("self") doMessage(argList asMessage setName("call"))
)

It works like Lisp's `apply` function.

Could this be added to Io in the future?