pub fn reverse_trans<T>(trans: impl IntoIterator<Item = T>) -> Vec<T>Expand description
Reverses translation table.
It returns reverse translation in direction. A reversed translation table have entry with index equal to value from original translation table’s entry at index of value this entry (from reversed translation table). Empty entries in reversed translation table are filled by default value.
Example: [4, 1, 0, 3, 2] -> [2, 1, 4, 3, 0].