Skip to content

Commit 451c700

Browse files
authored
Add Reverse String in V (#4084)
1 parent 8d3079a commit 451c700

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

archive/v/v/reverse-string.v

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module main
2+
3+
import os
4+
5+
fn main() {
6+
if os.args.len == 2 {
7+
println(os.args[1].reverse())
8+
}
9+
}

0 commit comments

Comments
 (0)