From: Hal Fulton Date: 2004-08-21T05:10:17+09:00 Subject: Re: Neat trick for Steckerboard of Enigma needed... Meino Christian Cramer wrote: > Together were are unbeatable,hahaha ! ;O))) > > What's about this: > > a="ABCDEFGHIJ" > hash=Hash[*a.split(//)] > => {"K"=>"L", "A"=>"B", "C"=>"D", "E"=>"F", "G"=>"H", "I"=>"J"} > > (but what is this littele '*' good for ?) The * expands the array, so that the call is in effect passing in multiple individual characters. If you leave it off, you are passing in a single array, and [] complains about an odd number of parameters. Hal