两个函数对等 很好的说明了maped

function r_color x =

x.wireColor = random (color 0 0 0) (color 255 255 255)

for i in selection do
 r_color i

mapped function rand_color x =

x.wireColor = random (color 0 0 0) (color 255 255 255)
rand_color $

posted on 2011-09-26 17:26  盖天00  阅读(259)  评论(0编辑  收藏  举报

导航