Comment detail

アレイのuniq (Nested Flatten)
1
2
3
4
5
6
def uniqueList( xs ){
    xs.unique()
}

xs = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9]
println uniqueList(xs)

Index

Feed

Other

Link

Pathtraq

loading...