Straddling checkerboard: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: Fix comment: Perl 6 --> Raku)
m (→‎{{header|Tcl}}: Fix link and comment: Perl 6 --> Raku)
Line 2,399: Line 2,399:


=={{header|Tcl}}==
=={{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 6|Perl 6]] solution.)<!--not a translation though; I didn't read the perl6 code…-->
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 [[#Raku|Raku]] solution.)<!--not a translation though; I didn't read the Raku code…-->
<lang tcl>package require Tcl 8.6
<lang tcl>package require Tcl 8.6