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 Jun 5, 2023. It is now read-only.
This feature request stems from this discussion: scala/scala3#12793
At least 3 alternatives were mentioned on that discussion thread. The one I believe is most promising is to allow any function or method having an appropriate signature to be used as an extractor.
defasInt(s: String):Option[Int] = s.toIntOption
valx:Int="4"matchcase asInt(v) => v
case _ =>0
So any methods with valid extractor type signatures