Open
Description
While the table provided by Petra is good for Swindler-ing things that are up to 6 elements long, it'd be handy to have a way to give HexBug a sequence like gbdiaecfh
and get the Lehmer code corresponding to that (assuming that the stack starts as ihgfedcba
, in this example, since the top of the stack is on the right in Hex's Lehmer Code documentation).