From http://www.playframework.org/documentation/2.0/ScalaTodoList
What does "~" do and why don't I need a dot in front of the map?
val task = { get[Long]("id") ~ get[String]("label") map { case id~label => Task(id, label) } }
Thanks for your help.
The ~ operator ~ inspired by Scala parser combinators ; it allows you to extract two column values ββfrom a row.
~
There is no point to map , because in Scala you do not need to write points .
map
Source: https://habr.com/ru/post/913249/More articles:The input string was not in the correct format - c #Should a bad USB device handle a Linux kernel error? - linuxCreating a GZipped tar file and dynamically streaming it through PHP? - phpdirectory structure for downloading without saving to the server - phpAirPrint Connection Error - objective-cpassing char arrays from C ++ to fortran - c ++How to make inline if expression in haml - ruby ββ| fooobar.comhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/913252/jquery-isotope-option-for-auto-height-on-element&usg=ALkJrhhZODTzGHfbuii-uH23bN6XI92l4wandroid insert on activity stack - androidMove the file to another directory after moving it - pythonAll Articles