> Does this actually yield a set in Scala?

yes, it does

> What is p()? A set constructor?

p(i) reads i-nth element from a vector

def selectRow(p: Vector[Int], i: Int) = {
    for (i <- (i - i % 9 to i - i % 9 + 8).toSet[Int]) yield p(i)
  }

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to