Logo

ZLB



SC Hint #1 - reduce

A great way to apply a binary operator successively  to the elements of an array is to use reduce.

e.g.

[true,false,true].reduce('&&')
["This ","is ","a string."].reduce('++')

Tags: ,

Leave a Reply


info_at_friendlyvirus.org
sales_at_friendlyvirus.org
www.myspace.com/friendlyvirus/