mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
287 B
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