Skip to content

Commit af3fd3f

Browse files
committed
Rename is to forms
This is a trial balloon to see whether `forms` works better than `this`. My immediate reaction is meh. Sometimes it's OK, at other times I liked `is` better. But I admit there's bias since the examples were chosen to work well with `is`.
1 parent 330f2d6 commit af3fd3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pos/hylolib/Collection.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ extension [Self: Collection](self: Self)
213213
* @complexity
214214
* O(n) where n is the number of elements in `self`.
215215
*/
216-
def minElement()(using Self.Element is Comparable): Option[Self.Element] =
216+
def minElement()(using Self.Element forms Comparable): Option[Self.Element] =
217217
self.minElement(isLessThan = _ `lt` _)
218218

219219
/** Returns the maximum element in `self`, using `isGreaterThan` to compare elements.
@@ -229,7 +229,7 @@ extension [Self: Collection](self: Self)
229229
* @complexity
230230
* O(n) where n is the number of elements in `self`.
231231
*/
232-
def maxElement()(using Self.Element is Comparable): Option[Self.Element] =
232+
def maxElement()(using Self.Element forms Comparable): Option[Self.Element] =
233233
self.maxElement(isGreaterThan = _ `gt` _)
234234

235235
/** Returns the maximum element in `self`, using `isOrderedBefore` to compare elements.

0 commit comments

Comments
 (0)