private fun List<String>.toValuableCustomers() = withoutHeader()
.map(String::toCustomerData)
.filter { it.score >= 10 }
private fun List<String>.withoutHeader() = drop(1)
이제는
generate
가 훨씬 적은 일을 하므로,
toValuableCustomers
()
함수가 가치가 있는지
명확하지 않다. 다시 살펴보면 이 함수가 걸러내는 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.