What is an Atmosphere account?
By logging in you agree to the terms, privacy policy and community guidelines.
Don't have an account? Create one
1 2 3 4 5 6 7 8 9 10 11
package opt import "cmp" func Positive[T cmp.Ordered](v, fallback T) T { var zero T if v > zero { return v } return fallback }