Consider the following Latex3 example usage of \clist_map_inline:nn
:
\documentclass[margin=0.1cm]{standalone}
\usepackage{expl3}
\begin{document}
\begin{tabular}{|c|c|}
\hline%
\ExplSyntaxOn%
\clist_map_inline:nn {A,B,C,D}%
{#1: & something \\\hline}%
\ExplSyntaxOff%
\end{tabular}
\begin{tabular}{|c|c|}
\hline%
\ExplSyntaxOn%
\clist_map_inline:nn {A,B,C}%
{#1: & something \\\hline}%
\ExplSyntaxOff%
D: & something \\\hline
\end{tabular}
\end{document}
Result:
Why does the first table have an extra empty row at the bottom?