why do we have `butlast` instead of `!last`?

54 views
Skip to first unread message

RA

unread,
Feb 11, 2021, 1:29:22 AM2/11/21
to TiddlyWiki

Today I needed a filter to return everything but the last title, and first thing I thought of was to use `!last[]`, but... there is only `butlast[]`. Am I not seeing something, or is this illogically inconsistent?

clutterstack

unread,
Feb 11, 2021, 11:01:16 AM2/11/21
to TiddlyWiki
I haven't paid a lot of attention to which operators can be negated and why, but if it seems more elegant, you can use first[-1] instead of butlast[]...

It seems clear there are some operators retained only for backward compatibility. butlast also has synonyms bf and rest.

Best,
Chris
Reply all
Reply to author
Forward
0 new messages