Added supporting Proc as collection in select

Now you can pass proc or lambda as collection in select