Ludic numbers: Difference between revisions
Content added Content deleted
(→{{header|Quackery}}: improved efficiency) |
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
||
Line 4,658: | Line 4,658: | ||
</pre> |
</pre> |
||
=={{header|Vlang}}== |
=={{header|V (Vlang)}}== |
||
{{trans|Go}} |
{{trans|Go}} |
||
<syntaxhighlight lang="vlang">const max_i32 = 1<<31 - 1 // i.e. math.MaxInt32 |
<syntaxhighlight lang="v (vlang)">const max_i32 = 1<<31 - 1 // i.e. math.MaxInt32 |
||
// ludic returns a slice of ludic numbers stopping after |
// ludic returns a slice of ludic numbers stopping after |
||
// either n entries or when max is exceeded. |
// either n entries or when max is exceeded. |