We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7655f2a commit 82e54e7Copy full SHA for 82e54e7
archive/t/tcl/reverse-string.tcl
@@ -0,0 +1,9 @@
1
+package require Tcl 8.6
2
+
3
+if {$argc != 1} { exit }
4
5
+set input [lindex $argv 0]
6
+if {$input eq ""} { exit }
7
8
+puts [join [lreverse [split $input ""]] ""]
9
0 commit comments