Content deleted Content added
m syntaxhighlight lang="gleam" for Pygments 2.18 upgrade |
Mark the codeblocks as "rust" to get syntax highlighting. Gleam and Rust share similar enough syntax for the highlighting to be compatible. |
||
Line 40:
== Example ==
<syntaxhighlight lang="
import gleam/io
Line 49:
Gleam supports [[tail call]] optimization:<ref>{{cite web | url=https://tour.gleam.run/flow-control/tail-calls/ | title=Tail Calls | website=The Gleam Language Tour | access-date=26 March 2024}}</ref>
<syntaxhighlight lang="
pub fn factorial(x: Int) -> Int {
// The public function calls the private tail recursive function
|