git.iko.soy/typeable/pandoc
on master help sign in
doc/lua-filters.md: sort pandoc.List methods alphabetically
commit23d81081d0d69c59ee3861bb4b7fb132efa03d6b authorAlbert Krewinkel <albert@zeitkraut.de> dateSat 11 Jan 2020, 20:00 (7 years ago) parent802a566
1 file changed+34−34
doc/lua-filters.md+34−34
doc/lua-filters.md+34−34
@@ -2665,33 +2665,14 @@ methods and convenience functions.
26652665
26662666: Returns a (shallow) copy of the list.
26672667
2668−[`pandoc.List:new([table])`]{#pandoc.list:new}
2669−
2670−: Create a new List. If the optional argument `table` is given,
2671− set the metatable of that value to `pandoc.List`.
2672−
2673− Parameters:
2674−
2675− `table`:
2676− : table which should be treatable as a list; defaults to an
2677− empty table
2678−
2679− Returns: the updated input value
2680−
2681−[`pandoc.List:includes (needle, init)`]{#pandoc.list:includes}
2668+[`pandoc.List:extend (list)`]{#pandoc.list:extend}
26822669
2683−: Checks if the list has an item equal to the given needle.
2670+: Adds the given list to the end of this list.
26842671
26852672 Parameters:
26862673
2687− `needle`:
2688− : item to search for
2689−
2690− `init`:
2691− : index at which the search is started
2692−
2693− Returns: true if a list item is equal to the needle, false
2694− otherwise
2674+ `list`:
2675+ : list to appended
26952676
26962677[`pandoc.List:find (needle, init)`]{#pandoc.list:find}
26972678
@@ -2725,14 +2706,33 @@ methods and convenience functions.
27252706 Returns: first item for which \`test\` succeeds, or nil if
27262707 no such item exists.
27272708
2728−[`pandoc.List:extend (list)`]{#pandoc.list:extend}
2709+[`pandoc.List:filter (pred)`]{#pandoc.list:filter}
27292710
2730−: Adds the given list to the end of this list.
2711+: Returns a new list containing all items satisfying a given
2712+ condition.
27312713
27322714 Parameters:
27332715
2734− `list`:
2735− : list to appended
2716+ `pred`:
2717+ : condition items must satisfy.
2718+
2719+ Returns: a new list containing all items for which \`test\`
2720+ was true.
2721+
2722+[`pandoc.List:includes (needle, init)`]{#pandoc.list:includes}
2723+
2724+: Checks if the list has an item equal to the given needle.
2725+
2726+ Parameters:
2727+
2728+ `needle`:
2729+ : item to search for
2730+
2731+ `init`:
2732+ : index at which the search is started
2733+
2734+ Returns: true if a list item is equal to the needle, false
2735+ otherwise
27362736
27372737[`pandoc.List:map (fn)`]{#pandoc.list:map}
27382738
@@ -2744,18 +2744,18 @@ methods and convenience functions.
27442744 `fn`:
27452745 : function which is applied to all list items.
27462746
2747−[`pandoc.List:filter (pred)`]{#pandoc.list:filter}
2747+[`pandoc.List:new([table])`]{#pandoc.list:new}
27482748
2749−: Returns a new list containing all items satisfying a given
2750− condition.
2749+: Create a new List. If the optional argument `table` is given,
2750+ set the metatable of that value to `pandoc.List`.
27512751
27522752 Parameters:
27532753
2754− `pred`:
2755− : condition items must satisfy.
2754+ `table`:
2755+ : table which should be treatable as a list; defaults to an
2756+ empty table
27562757
2757− Returns: a new list containing all items for which \`test\`
2758− was true.
2758+ Returns: the updated input value
27592759
27602760# Module pandoc.system
27612761