Content deleted Content added
ShelfSkewed (talk | contribs) Removed hatnote per WP:NAMB—the title of this article is not ambiguous |
m →Example: lang="gleam" for Pygments 2.19 upgrade |
||
Line 55:
== Example ==
A [["Hello, World!" program|"Hello, World!"]] example:
<syntaxhighlight lang=" import gleam/io
Line 64 ⟶ 65:
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
|