2014-04-10 18:56:51 +00:00
created: 20140410103123179
2022-02-26 09:42:24 +00:00
modified: 20220226043344258
2015-01-24 21:18:44 +00:00
tags: [[Filter Operators]] [[Order Operators]]
2015-01-18 18:39:00 +00:00
title: butlast Operator
2014-04-10 18:56:51 +00:00
type: text/vnd.tiddlywiki
2015-01-18 18:39:00 +00:00
caption: butlast
2015-02-03 19:29:25 +00:00
op-purpose: discard the last <<.place N>> input titles
op-input: a [[selection of titles|Title Selection]]
op-parameter: an integer, defaulting to 1
op-parameter-name: N
op-output: all but the last <<.place N>> input titles
2014-04-10 18:56:51 +00:00
2022-02-26 09:42:24 +00:00
<<.from-version "5.2.2">> The <<.op butlast>> operator returns the input list unchanged if <<.place N>> is 0. This is consistent with the behaviour of the [[rest Operator]].
2015-01-18 18:39:00 +00:00
<<.operator-examples "butlast">>