4 ms·
Looks like scala to me: def playwith_seq[A] (seq : Iterable[A]) : List[A] for (x <- seq if x % 3 == 0) yield x * x
by jimwise 16y ago
Looks like scala to me:
def playwith_seq[A] (seq : Iterable[A]) : List[A]
for (x <- seq if x % 3 == 0) yield x * x