Mode:
Duration:
1
2
3
4
5
6
lst = [1 2 3 4 5]
sum = 0
for x $lst {
sum = (math $sum + $x)
}
echo $sumCoding works best on desktop or with an external keyboard.
lst = [1 2 3 4 5]
sum = 0
for x $lst {
sum = (math $sum + $x)
}
echo $sumCoding works best on desktop or with an external keyboard.
Calculates sum of a list of numbers.
lst = [1 2 3 4 5]
sum = 0
for x $lst {
sum = (math $sum + $x)
}
echo $sumElvish is a modern, expressive shell and scripting language designed for interactive use and automation. It emphasizes structured data, pipelines, modularity, and user-friendly syntax, combining features from traditional Unix shells with modern programming concepts.
Origin & Creator
Created by Jeffrey Shu, first released in 2014.
Industrial Note
Elvish is particularly useful in environments where shell automation, interactive data processing, and structured scripting pipelines are needed.