class Dhall::Builtins::List_fold

Protected Instance Methods

uncurried_call(ltype, list, ztype, f, z) click to toggle source
# File lib/dhall/builtins.rb, line 219
def uncurried_call(ltype, list, ztype, f, z)
        return unfill(ltype, list, ztype, f, z) unless list.is_a?(Dhall::List)

        list.reduce(z, &f).normalize
end