I am studying scala. For an practice, I am building a login page. To do this, I have been searched examples on web.
I found some interesting code like below.
val loginForm = Form(
tuple(
"username"->nonEmptyText,
"password"->nonEmptyText
)
)
I think after '->', it has to be an reserved words, right? I wonder how many reserved word can be in this place.
Especially some type like password. Any reference or example will be greatly welcomed :D
Predef.scala- github.com/scala/scala/blob/master/src/library/scala/… - where the->method and a lot of other interesting stuff is defined.TupleNdefined names, where N is, prior to Scala 2.11, a small (-ish) integer.