Jump to content

Straddling checkerboard: Difference between revisions

m
→‎{{header|Tcl}}: Fix link and comment: Perl 6 --> Raku
m (→‎{{header|Raku}}: Fix comment: Perl 6 --> Raku)
m (→‎{{header|Tcl}}: Fix link and comment: Perl 6 --> Raku)
Line 2,399:
 
=={{header|Tcl}}==
Structured as a class, the instances of which contain encoding and decoding mappings suitable for use with Tcl's built in string remapping engine. This uses the fact that no sequence of digits in the encoded form that maps to one character is a prefix of the sequence for any other character. (Inspired by the ''description'' of the [[#Perl 6Raku|Perl 6Raku]] solution.)<!--not a translation though; I didn't read the perl6Raku code…-->
<lang tcl>package require Tcl 8.6
 
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.