Range consolidation: Difference between revisions

Line 510:
func Pt.min() => min(this::s, this::e)
func Pt.max() => max(this::s, this::e)
func Pt.toString() => "(\(this::s), \(this::e))"
 
let rng = [
Line 549 ⟶ 550:
{{out}}
 
<pre>[(s: 1.1, e: 2.2)]
[(s: 6.1, e: 8.3)]
[(s: 1, e: 2), (s: 3, e: 4)]
[(s: -1, e: 2), (s: 3, e: 10)]
[(s: -6, e: -1), (s: 1, e: 8)]</pre>
 
=={{header|Go}}==
Anonymous user