Kotlin Script

1 program Added 2026-03-10T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: kts, Kotlin Scripting
Provenance: commit 7cb049f92c · authored 2026-03-10T21:12:57+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

SwiftScript (0.33)KVIrc Script (0.31)LabTalk (0.29)CLEO (0.25)Linden Scripting Language (0.25)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit 7cb049f92c · authored 2026-03-10T21:12:57+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.kts · added: 2026-03-10T10:00:00Z
#!/usr/bin/env kotlin

// Compute Fibonacci numbers using Kotlin Script
fun fibonacci(n: Int): Sequence<Long> = sequence {
    var a = 0L
    var b = 1L
    repeat(n) {
        yield(a)
        val next = a + b
        a = b
        b = next
    }
}

val count = 20
println("First $count Fibonacci numbers:")
fibonacci(count).forEachIndexed { i, v ->
    println("  F($i) = $v")
}

Contribute — propose a file extension

Tell us where to find evidence about Kotlin Script (mapped to pl/kotlin_script). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Kotlin Script/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Kotlin Native Kotlinx →