Commit 77e5883a authored by Ian Lynagh's avatar Ian Lynagh

Add a composes function to the driver

parent 207d82ba
......@@ -212,6 +212,9 @@ def c_src( opts ):
# ----
# Function for composing two opt-fns together
def composes( fs ):
return reduce(lambda f, g: compose(f, g), fs)
def compose( f, g ):
return lambda opts, f=f, g=g: _compose(opts,f,g)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment