Affichage des articles dont le libellé est scala. Afficher tous les articles
Affichage des articles dont le libellé est scala. Afficher tous les articles
12/10/2013

Scala equivalent of JavaScript ~.apply and Python unpacking

In Scala unpacking arguments in the context of a method call is achieved with an array argument followed by a colon and an _* symbol, like so:


Applying an array argument only works with functions that use repeated parameters, like print[A](args: A*) above.


Note: JavaScript Function::apply, requires a calling object as the first argument and works on any function (unlike in scala) so it's not quite the same.
11/29/2013

How to change Play framework default development port once and for all

The following trick will only work in developpment env., to change the default port in production use -Dhttp.port=9001 instead.
»
 
 
Made with on a hot august night from an airplane the 19th of March 2017.