Googly Adventures - Samer's Coding Blog
Monday, August 3, 2015
Today I learned... tuple assignment in Scala
// This works
var
(x, y) =
try
{
(
0
,
0
)
}
// This doesn't work... would be nice if it did!
var
x: Int =
0
var
y: Int =
0
(x, y) =
try
{
(
0
,
0
)
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment