annotate teal-src/prosody/util/array.d.tl @ 14229:ce31fdde0ad1 default tip

net.unbound: Simplify conditional
author Kim Alvefur <zash@zash.se>
date Sat, 13 Jun 2026 11:35:18 +0200
parents f20c1c2c73c7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13858
f20c1c2c73c7 util.array: Update for 'record is { T }' syntax
Kim Alvefur <zash@zash.se>
parents: 12979
diff changeset
1 local record array_t<T> is { T }
f20c1c2c73c7 util.array: Update for 'record is { T }' syntax
Kim Alvefur <zash@zash.se>
parents: 12979
diff changeset
2 -- TODO methods
12611
33b7e7bd83fd teal: add stub util.array teal defs
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 end
33b7e7bd83fd teal: add stub util.array teal defs
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4
33b7e7bd83fd teal: add stub util.array teal defs
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 local record lib
33b7e7bd83fd teal: add stub util.array teal defs
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 metamethod __call : function () : array_t
13858
f20c1c2c73c7 util.array: Update for 'record is { T }' syntax
Kim Alvefur <zash@zash.se>
parents: 12979
diff changeset
7 -- TODO library functions
12611
33b7e7bd83fd teal: add stub util.array teal defs
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 end
33b7e7bd83fd teal: add stub util.array teal defs
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9
33b7e7bd83fd teal: add stub util.array teal defs
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10 return lib