2018-11-26

Scala MatchError scala.collection.immutable.$colon$colon

I got an error while writing a Scala Combinator Parser:
MatchError: ... scala.collection.immutable.$colon$colon
I didn't understand anything until I found there is a list called "::"
$colon$colon
All that was need was to use .toList to get an ordinary list.

2 kommentarer: