description of lambda

This commit is contained in:
thibhero 2025-02-15 23:01:53 -05:00
parent 5886b51df7
commit b821446b6f

View File

@ -237,6 +237,10 @@ module Homebrew
end end
} }
# Build a unique list of formulae to size by including:
# 1. The original formulae to install.
# 2. Their outdated dependents (subject to pruning criteria).
# 3. Optionally, any installed formula that depends on one of these and is outdated.
compute_sized_formulae = lambda { |f, check_dep: true, upgrade: true| compute_sized_formulae = lambda { |f, check_dep: true, upgrade: true|
sized_formulae = f.flat_map do |formula| sized_formulae = f.flat_map do |formula|
# Always include the formula itself. # Always include the formula itself.