zlacker

[parent] [thread] 0 comments
1. miller+(OP)[view] [source] 2024-08-28 14:32:51
Kotlin time (since we're in the JVM context for Clojure)

    fun color(word: String, letter: Char, idx: Int) =
      when (letter) {
        word[idx] -> GREEN
        in word -> YELLOW
        else -> GRAY
      }
[go to top]