Mode:
Duration:
1
2
let arr = @[1,2,3,4,5]
echo arr.fold(0, proc(x, y: int): int = x + y)Coding works best on desktop or with an external keyboard.
let arr = @[1,2,3,4,5]
echo arr.fold(0, proc(x, y: int): int = x + y)Coding works best on desktop or with an external keyboard.
Sums elements of a sequence.
let arr = @[1,2,3,4,5]
echo arr.fold(0, proc(x, y: int): int = x + y)Nim is a statically typed, compiled systems programming language with Python-like syntax. It emphasizes performance, expressiveness, and metaprogramming, making it suitable for system tools, web development, and scientific computing.
Origin & Creator
Created in 2008 by Andreas Rumpf.
Industrial Note
Nim is used in high-performance tools, embedded systems, game development, and niche web frameworks where low-level control and speed are essential.