Provide generic extractor for ``Cell``
frgomes opened this issue · comments
It would be useful to have a generic extractor which could delegate to specialized extractors. For example:
object Cell {
def unapply(cell: Cell): Option[(Int, Any)] =
cell match {
case StringCell(index, data) => Some((index, data))
case NumericCell(index, data) => Some((index, data))
case BooleanCell(index, data) => Some((index, data))
case FormulaCell(index, data) => Some((index, data))
case _ => None
}
}