I've created a permutation list
Grid[Permutations[{a, e, q, r, t, u}], Frame -> All]
and only want to see rows where the 5th element is a "t". I tried to do use FilterRules, but I don't understand how to use them as shown below.
Grid[FilterRules[Permutations[{a, e, q, r, t, u}], Frame -> All], {, , , , t,}]
Could somebody please help me.
Cases[Permutations[{a, e, q, r, t, u}], {Repeated[_, {4}], t, _}]
, which you can then wrap inGrid
for presentation as well:Grid[Cases[ ... ], Frame -> All]
. $\endgroup$FilterRules
is for handling options. $\endgroup$