Programming in Scala strings. It returns the vector of capitalized strings. For example: val a = Vector(penn,
Fantastic news! We've Found the answer you've been seeking!
Question:
Programming in Scala strings. It returns the vector of capitalized strings. For example: val a = Vector("penn", "state") val b upper(a) should result in b being Vector("PENN" "STATE") Strings have a.toUpperCase method (without parentheses). Hint: use map. The body of this function should be 1 line.
Posted Date: