mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 18:25:45 +00:00
17 lines
212 B
Bash
Executable file
17 lines
212 B
Bash
Executable file
mlr --csvlite --from data/a.csv put '
|
|
func f(
|
|
num a,
|
|
num b,
|
|
): num {
|
|
return a**2 + b**2;
|
|
}
|
|
$* = {
|
|
"s": $a + $b,
|
|
"t": $a - $b,
|
|
"u": f(
|
|
$a,
|
|
$b,
|
|
),
|
|
"v": NR,
|
|
}
|
|
'
|