|
|
|
|
|
by jdiff
40 days ago
|
|
This is one of the things I've loved about Gleam, one local variable name and potentially an external label that callers can use to annotate themselves. For example, a function declaration may look like this: pub fn pad_end(
string: String,
to desired_length: Int,
with pad_string: String,
) -> String
And a call to this function may look like: pad_end("123", to: 5, with: ".")
|
|