Add support for more than 2 arguments to minOf/maxOf (both for XInt/YInt, XAxisSolver/YAxisSolver variants) · Issue #116 · cashapp/contour · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2025. It is now read-only.
but minOf has only 2 args... Similar situation is for xint/yint, I often find myself wishing for more args.
Is this possible or maybe I also miss some easy workaround to achive what I want? I know I can put if (someView.isVisible) rule1 else rule2 in my lambdas, but that looks not very elegant and a bit messy...
P.S. Can't help but think that if we'd be in the functional programming land, XInt/Yint, and axis solvers could be an instance of Monoid + Ord and all the stdlib functions (including min) would just work on them. But oh well :)
The text was updated successfully, but these errors were encountered:
dimsuz
changed the title
Add support for more than 3 arguments to minOf/maxOf (both for XInt/YInt, XAxisSolver/YAxisSolver variants)
Add support for more than 2 arguments to minOf/maxOf (both for XInt/YInt, XAxisSolver/YAxisSolver variants)
Jan 11, 2021
It is not the first time I have this usecase, where I want more than two arguments for
minOf
.minOf
currently supportsXInt/YInt
andXAxisSolver/YAxisSolver
(but only 2 args for both kinds)...I have just r 93A7 an into another case with the latter. The layout is like this:
I want to do something like this:
but
minOf
has only 2 args... Similar situation is for xint/yint, I often find myself wishing for more args.Is this possible or maybe I also miss some easy workaround to achive what I want? I know I can put
if (someView.isVisible) rule1 else rule2
in my lambdas, but that looks not very elegant and a bit messy...P.S. Can't help but think that if we'd be in the functional programming land, XInt/Yint, and axis solvers could be an instance of Monoid + Ord and all the stdlib functions (including
min
) would just work on them. But oh well :)The text was updated successfully, but these errors were encountered: