Пока ехал, на заднем сиденье, от Помоны до Сан Хосе
( Read more... )парсит вот такую фигню типа
val parsedOpt = PropTree parse "fp(Map(Deductible.Limit.Out of Network.Member -> $4,000.00, " +
"Deductible.Accumulated.In Network.Member -> $0.00, " +
"Deductible.Remaining Balance.In Network.Member -> $2,000.00, " +
"Deductible.Limit.In Network.Member -> $2,000.00, " +
"Deductible.Accumulated.Out of Network.Family -> $0.00, " +
"Deductible.Accumulated.In Network.Family -> $249.00, " +
"Deductible.Accumulated.Out of Network.Member -> $0.00, " +
"Deductible.Limit.In Network.Family -> $4,000.00, " +
"Deductible.Remaining Balance.In Network.Family -> $3,751.00, " +
"Deductible.Remaining Balance.Out of Network.Member -> $4,000.00, " +
"Deductible.Limit.Out of Network.Family -> $8,000.00, " +
"Deductible.Remaining Balance.Out of Network.Family -> $8,000.00)) " +
"with dictionary " +
"fp(Map(Individual -> Member, max -> Limit, OutOfNetwork -> Out of Network, InNetwork -> In Network, current -> Accumulated, OutOfPocket -> Out of Pocket)) " +
"with reordering (3,4,2,1)"
Note spaces in keys, commas in values, and total lack of quotes.
What I could not figure out is how to convert an Option[T] into a function that applies on Some and does not on None.