Changeset

4448:d745f4c28294

util.array: Make array:push() chainable.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 09 Dec 2011 11:57:14 +0500 (2011-12-09)
parents 4447:57d7362a9312
children 4449:ca74d8ed1a15
files util/array.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)