1set/starlet

View on GitHub
testdata/factorial.star

Summary

Maintainability
Test Coverage
def factorial(n):
    if n < 0:
        return None
    result = 1
    for i in range(2, n + 1):
        result *= i
    return result