From 23d81081d0d69c59ee3861bb4b7fb132efa03d6b Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sat, 11 Jan 2020 20:00:02 +0100 Subject: [PATCH] doc/lua-filters.md: sort pandoc.List methods alphabetically --- doc/lua-filters.md | 84 +++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 01b854b71..3c4f1f0c8 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -2665,33 +2665,14 @@ methods and convenience functions. : Returns a (shallow) copy of the list. -[`pandoc.List:new([table])`]{#pandoc.list:new} +[`pandoc.List:extend (list)`]{#pandoc.list:extend} -: Create a new List. If the optional argument `table` is given, - set the metatable of that value to `pandoc.List`. +: Adds the given list to the end of this list. Parameters: - `table`: - : table which should be treatable as a list; defaults to an - empty table - - Returns: the updated input value - -[`pandoc.List:includes (needle, init)`]{#pandoc.list:includes} - -: Checks if the list has an item equal to the given needle. - - Parameters: - - `needle`: - : item to search for - - `init`: - : index at which the search is started - - Returns: true if a list item is equal to the needle, false - otherwise + `list`: + : list to appended [`pandoc.List:find (needle, init)`]{#pandoc.list:find} @@ -2725,25 +2706,6 @@ methods and convenience functions. Returns: first item for which \`test\` succeeds, or nil if no such item exists. -[`pandoc.List:extend (list)`]{#pandoc.list:extend} - -: Adds the given list to the end of this list. - - Parameters: - - `list`: - : list to appended - -[`pandoc.List:map (fn)`]{#pandoc.list:map} - -: Returns a copy of the current list by applying the given - function to all elements. - - Parameters: - - `fn`: - : function which is applied to all list items. - [`pandoc.List:filter (pred)`]{#pandoc.list:filter} : Returns a new list containing all items satisfying a given @@ -2757,6 +2719,44 @@ methods and convenience functions. Returns: a new list containing all items for which \`test\` was true. +[`pandoc.List:includes (needle, init)`]{#pandoc.list:includes} + +: Checks if the list has an item equal to the given needle. + + Parameters: + + `needle`: + : item to search for + + `init`: + : index at which the search is started + + Returns: true if a list item is equal to the needle, false + otherwise + +[`pandoc.List:map (fn)`]{#pandoc.list:map} + +: Returns a copy of the current list by applying the given + function to all elements. + + Parameters: + + `fn`: + : function which is applied to all list items. + +[`pandoc.List:new([table])`]{#pandoc.list:new} + +: Create a new List. If the optional argument `table` is given, + set the metatable of that value to `pandoc.List`. + + Parameters: + + `table`: + : table which should be treatable as a list; defaults to an + empty table + + Returns: the updated input value + # Module pandoc.system Access to system information and functionality.