by PudgePacket · 12y ago · 0 comments
match line.chars().next() {
Some(x) => match x {
'#' => ...
'v' => ...
_ => ...
},
None => ...
}
But I felt that the current approach was fine. At this point it becomes more a decision of style and taste vs any kind of practicality.No comments yet.