Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
12
Task/Sort-an-integer-array/Gleam/sort-an-integer-array.gleam
Normal file
12
Task/Sort-an-integer-array/Gleam/sort-an-integer-array.gleam
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import gleam/int
|
||||
import gleam/io
|
||||
import gleam/list
|
||||
import gleam/string
|
||||
|
||||
pub fn main() {
|
||||
[2, 1, 5, 3, 4]
|
||||
|> list.sort(int.compare)
|
||||
|> list.map(int.to_string)
|
||||
|> string.join(" ")
|
||||
|> io.println
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue