Simple Array Map Example

def main(args: Array[String]) { val nums = List(1, 2, 3, 4, 5) println(nums) val strings = nums.map(_.toString) println(strings) }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.