• + 1 comment

    And here's in kotlin:

    return queries.flatMap { s -> listOf(strings.count { it==s }) }.toTypedArray()