3 struct Point(x:Int, y:Int)
7 # `_min_` and `_max_` return the smaller or larger of two values:
8 smallest_int := 7 _min_ 3
9 assert smallest_int == ???
11 most_fruit := "apple" _max_ "banana"
12 assert most_fruit == ???
14 # You can use an indexed key for choosing a maximum:
15 biggest_y_point := Point(1, 2) _max_.y Point(999, 0)
16 assert biggest_y_point == Point(???, ???)
18 shortest_list := [1, 2, 3] _min_.length [99, 100]
19 assert shortest_list == [???]
21 # You can also use a method for choosing a maximum:
22 biggest_magnitude := 5 _max_.abs() -999
23 assert biggest_magnitude == ???