frellan
03/28/2018, 8:05 PMvar
and val
in the same call? Or reassign and declare in the same call? Currently I have to do this and its not so nice.
var line = input
val (lineWithoutParenthesis, parenthesis) = extractParenthesis(line)
line = lineWithoutParenthesis.trim()
val (lineWithoutAlternatives, alternativeStrings) = extractAlternativeStrings(line)
line = lineWithoutAlternatives.trim()