5,337
edits
(→Basics) |
|||
Line 108: | Line 108: | ||
===Basics=== | ===Basics=== | ||
===Functions=== | |||
You can chain functions using the pipe operator <code>|></code>. This is similar to <code>%>%</code> in [[R]] or <code>|></code> in [[F_sharp| F#]] | |||
<syntaxhighlight lang="julia> | |||
a = [1,2,3]; | |||
// Equivalent to sum(a) | |||
b = a |> sum | |||
</syntaxhighlight> | |||
====Strings==== | ====Strings==== | ||
=====String Interpolation===== | =====String Interpolation===== |