Skip to main content

simplify_expression

Function simplify_expression 

Source
pub fn simplify_expression(expr: &LicenseExpression) -> LicenseExpression
Expand description

Simplify a license expression by deduplicating and reducing boolean clauses.

§Arguments

  • expr - The expression to simplify

§Returns

Simplified expression with duplicate and subsumed licenses removed, preserving order.