5 lines
98 B
Text
5 lines
98 B
Text
def 'math dot' [v] {
|
|
zip $v | each { math product } | math sum
|
|
}
|
|
|
|
[1 3 -5] | math dot [4 -2 -1]
|