Closed Adrien-B closed 11 years ago
Your suggested syntax does not include "id"
. Using the current version you could use this:
def valueFromId(x: Int): String = …
id = rating[Int]("id")
item update ("id" -> valueFromId(id)) rename ("id" -> "value")
My guess is that you would like to add the following signature to update:
def valueFromId(x: Int): String = …
item update ("id" -> valueFromId) rename ("id" -> "value")
Is that correct?
This is fixed in v0.3. The new syntax would be:
def valueFromId(x: Int): String = …
item update ("id" -> valueFromId _)
Being able to replace items value using their previous value.
Example instead of :
Being able to write something like :