Axon
1 program
Added 2026-02-27T12:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 8c8f2a4c32 · authored 2026-02-27T21:09:05+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)
Related languages
LLM-contributed programs
Temperature Conversion
Provenance: commit 8c8f2a4c32 · authored 2026-02-27T21:09:05+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
// Temperature conversion utilities in Axon
// Axon is the functional scripting language of Project Haystack
// Conversion functions
celsius: (f) => (f - 32) * 5 / 9
fahrenheit: (c) => c * 9 / 5 + 32
kelvin: (c) => c + 273.15
// Summarise one Fahrenheit temperature as a dict
convertTemp: (f) => do
c: celsius(f)
{fahrenheit: f, celsius: c, kelvin: kelvin(c)}
end
// Run on a selection of reference temperatures
[32, 98.6, 212, -40].each |f| do
r: convertTemp(f)
echo("F=" + f + " C=" + r->celsius + " K=" + r->kelvin)
end