This page is no longer maintained — Please continue to the home page at www.scala-lang.org

tupled/untupled (and curried/curry)

No replies
Seth Tisue
Joined: 2008-12-16,
User offline. Last seen 34 weeks 3 days ago.

Is there some reason tupled and untupled are methods on the Function
companion object, instead of being regular methods? It means I can't
write fn.tupled, I have to write Function.tupled(fn).

On a related note, it seems strange that both of these work:
fn.curried
Function.curry(fn)
This seems redundant and the slightly different naming is confusing.

Are these just oversights? If so, I can open tickets.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland