annotate teal-src/prosody/util/array.d.tl @ 13858:f20c1c2c73c7

util.array: Update for 'record is { T }' syntax
author Kim Alvefur <zash@zash.se>
date Sat, 30 Nov 2024 16:20:18 +0100
parents fbbf4f0db8f0
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