Greatest element of a list: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m syntax highlighting fixup automation |
→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)" |
||
Line 4,553:
Greatest element is 5992424433449</pre>
=={{header|V (Vlang)}}==
<syntaxhighlight lang="v (vlang)">fn max<T>(list []T) T {
mut max := list[0]
for i in 1..list.len {
|