Tue, 16 Jan 2018 17:24:27 +0000
Bitbucket didn't like <...> around email using HTML, so use Unicode
2 | 1 | |
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
2 | --@module tuple |
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
3 | local tuple={} |
2 | 4 | |
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
5 | function tuplefst(a, b) |
2 | 6 | return a |
7 | end | |
8 | ||
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
9 | function tuple.snd(a, b) |
2 | 10 | return b |
11 | end | |
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
12 | |
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
13 | return tuple |