Login
Discover
Waves
Decks
Plus
Login
Signup
Topics
New
Trending
Hot
New
New
Trending
Hot
New
Payouts
Muted
Promoted
Global
Top communities
Create decentralized community
latest #kr-development created topics on internet
taewan.kim
scala
2018-04-10 14:50
Scala 예상 못한 입력 패턴에 대한 처리: flatMap
스칼라에서 컬렉션을 map함수로 변환시킬 때 어떤 것을 걸러 내야 할 때가 있습니다. val x = List("taewan 45", "minsu 6", "sunny 43") x.map{ v => val Array(name, age) = v.split(" ") (name, age.toInt)
$ 2.296
5
1