úÎØœportable experimentalamy@nualeargais.ie Safe-Inferred k9 generates the list of Binary Reflected Gray Code (BRGC) - numbers of length k. This code is cyclic.  xs k1 generates a non-Boolean (or n-ary) Gray code of  length k using the elements of x as digits. This code is cyclic. Ex:  012 4( generates a ternary Gray code that is  four digits long. Shift elements right. gray-extended-1.2 Codec.Gray grayCodes naryGrayCodesshiftprefixAndShift