numbat 1.23.0

A statically typed programming language for scientific computations with first class support for physical dimensions and units.
Documentation
1
2
3
4
5
6
use core::scalar

@description("Print the value (and type) of the argument and return it. Useful for debugging.")
@example("inspect(36 km / 1.5 hours) * 1 day")
@example("range(1, 3) |> map(sqr) |> map(inspect) |> sum")
fn inspect<T>(x: T) -> T