Don't know how to limit this list

Consider this on TiddlyWiki.com with field:

test-2 = Learning
test-3 = How

<$list filter="[tag{!!test-2}]" variable="b">
<$list filter="[<b>removeprefix{!!test-3}limit[3]]" variable="c">

<<b>> || <<c>>

</$list></$list>

I would expect the list to return only 3 results. But instead it returns all.

Any ideas on how to limit this list after the prefix has been removed?

The limit only works on the filter it is currently on. So in this case, the filter itself might be invoked 20 times (by the first line), but the limit wouldn’t know anything about that.

Since “removeprefix” also works as a filter “prefix”, I’ve rearranged things so that the limit will apply (test at tiddlywiki.com):

<$list filter="[tag{!!test-2}prefix{!!test-3}limit[3]]" variable="b">
<<b>> || {{{ [<b>removeprefix{!!test-3}] }}} <br/>
</$list>