roc/test/snapshots/repl/polymorphic_numeric_in_comparison.md
2025-11-30 18:25:50 -05:00

287 B

META

description=Polymorphic comparison with numeric literals inside lambda
type=repl

SOURCE

» is_positive = |x| x > 0
» List.any([-1, 0, 1], is_positive)
» List.any([-1, 0, -2], is_positive)

OUTPUT

assigned is_positive

True

False

PROBLEMS

NIL