about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-06-05 22:23:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-06-05 22:23:25 -0700
commitf1981e85db8cc349dc1e4cfa4cddb6e83ae2ad17 (patch)
tree91d55d09d48dcbef4eeeb49c222132463568da69
parentfc094496c1a8b4d89faba8eeadc213e886217f9f (diff)
downloadlines.love-f1981e85db8cc349dc1e4cfa4cddb6e83ae2ad17.tar.gz
document a couple of miscellaneous helpers
-rw-r--r--reference.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/reference.md b/reference.md
index 3426d25..802c99d 100644
--- a/reference.md
+++ b/reference.md
@@ -317,6 +317,12 @@ and [the Lua manual](https://www.lua.org/manual/5.1/manual.html#5.7).
 * `App.setClipboardText(text)` -- stores the string `text` in the clipboard.
   (Based on [LÖVE](https://love2d.org/wiki/love.system.setClipboardText).)
 
+* `array.find(arr, elem)` -- scan table `arr` for `elem` assuming it's
+  organized as an array (just numeric indices).
+
+* `array.any(arr, f)` -- scan table `arr` for any elements satisfying
+  predicate `f`. Return first such element or `false` if none.
+
 There's much more I could include here; check out [the LÖVE manual](https://love2d.org/wiki)
 and [the Lua manual](https://www.lua.org/manual/5.1/manual.html).