2011-12-06 14 views

cevap

13

Bu, posta listesinde son zamanlarda bir konu oldu: Help understanding RestHelper serve params.

Temel olarak, infix stilinde yazılan unapply yöntemlerinin bir dizisidir. Bu o

case JsonGet(Nil, _) => Item.inventoryItems: JValue 

ve

biraz daha az büyü görünmesini sağlar
case JsonPut(Nil, Item(item) -> _) => Item.add(item): JValue // or 
case JsonPut(Nil, Tuple2(Item(item), _)) => Item.add(item): JValue 
// using that -> denotes a Tuple 

yazılmasına eşdeğerdir gelir.