Skip to content
Commit 9d0f2128 authored by Douglas Raillard's avatar Douglas Raillard
Browse files

lisa.utils: Add foldr()

Add right-associative version of functools.reduce(), so that:
[a, b, c, d] is turned into f(a, f(b, f(c, f(d, init))))
instead of f(f(f(f(init, a), b), c), d)
parent 34836c71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment