3 ms·
With stardot or just star? Yeah either would be a little weird. I'm asking partly because Ocaml uses stardot for floating point multiplication.
by emmelaich 8y ago
With stardot or just star?
Yeah either would be a little weird.
I'm asking partly because Ocaml uses stardot for floating point multiplication.
- ddragon 8y agoJust * "a" * "b" == "ab" "a" ^ 3 == "aaa" Though the dot version is actually almost possible because of a special syntax in Julia called broadcasting, which applies any function element-wise. "a" .* ["a", "b", "c"] == ["aa", "ab", "ac"] ["a", "b", "c"] .* "a" == ["aa", "ba", "ca"] ("a" * ["a", "b", "c"] would raise an error)