Diff

util/array.lua @ 4448:d745f4c28294

util.array: Make array:push() chainable.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 09 Dec 2011 11:57:14 +0500
parent 4440:c60ed6732b34
child 4449:ca74d8ed1a15
line wrap: on
line diff
--- a/util/array.lua	Fri Dec 09 11:44:00 2011 +0500
+++ b/util/array.lua	Fri Dec 09 11:57:14 2011 +0500
@@ -105,6 +105,7 @@
 
 function array_methods:push(x)
 	table.insert(self, x);
+	return self;
 end
 
 function array_methods:pop(x)