Generic-user-small Thomas Quas 1 post

Howdy,

I’m missing an explanation of the wonderful &:. How about ‘line_items.to_a.sum(&:full_price)’?

 
Dave_8_trans_small Dave Thomas Administrator 16 posts

Thomas: It’s described in several places—at the end of the tutorial chapter on containers, and under Symbol#to_proc.

2 posts, 2 voices