some work on scanning and the auctions/bids tab

This commit is contained in:
Manuel Simon Hirsig
2015-10-28 01:19:41 +01:00
parent 2cd1f43bc8
commit f091153a8c
8 changed files with 537 additions and 346 deletions
-42
View File
@@ -356,45 +356,3 @@ function Aux.util.set()
return self
end
function Aux.util.maybe(value)
local self = {}
function self.join()
if value == nil then
return Aux.util.maybe()
else
return value
end
end
function self.map(f)
if value == nil then
return Aux.util.maybe()
else
return maybe(f(value))
end
end
function self.bind(f)
return self.map(f).join()
end
function self.get()
return value
end
function self.or_else(default_value)
if value == nil then
return default_value
else
return value
end
end
function self.present()
return value ~= nil
end
return self
end