之前看了一篇文章:
iOSのSwiftとAndroidのGroovy http://rejasupotaro.github.io/2014/06/05/49.html
补充几点
1.
//groovy
def closure1={a,b->a/b}
//swift
{$0/$1}
之前看了一篇文章:
iOSのSwiftとAndroidのGroovy http://rejasupotaro.github.io/2014/06/05/49.html
补充几点
1.
//groovy
def closure1={a,b->a/b}
//swift
{$0/$1}