aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-14 06:13:23 +0800
committerobscuren <geffobscura@gmail.com>2014-09-14 06:13:23 +0800
commit2fb57b2ea7b7f697ddc4811c471d87116eae07cc (patch)
tree9d3739fe5c4377d9cd21a0a4c067f550d3567614 /ethutil
parent96cf6fc147b7b9cb1f299a1fb2ae46bde660192a (diff)
downloadgo-tangerine-2fb57b2ea7b7f697ddc4811c471d87116eae07cc.tar
go-tangerine-2fb57b2ea7b7f697ddc4811c471d87116eae07cc.tar.gz
go-tangerine-2fb57b2ea7b7f697ddc4811c471d87116eae07cc.tar.bz2
go-tangerine-2fb57b2ea7b7f697ddc4811c471d87116eae07cc.tar.lz
go-tangerine-2fb57b2ea7b7f697ddc4811c471d87116eae07cc.tar.xz
go-tangerine-2fb57b2ea7b7f697ddc4811c471d87116eae07cc.tar.zst
go-tangerine-2fb57b2ea7b7f697ddc4811c471d87116eae07cc.zip
Reworked filters
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/list.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethutil/list.go b/ethutil/list.go
index 18bf04792..0aa657a14 100644
--- a/ethutil/list.go
+++ b/ethutil/list.go
@@ -20,6 +20,10 @@ func NewList(t interface{}) *List {
return &List{list, list.Len()}
}
+func EmptyList() *List {
+ return NewList([]interface{}{})
+}
+
// Get N element from the embedded slice. Returns nil if OOB.
func (self *List) Get(i int) interface{} {
if self.list.Len() > i {