Skip to content

Commit

Permalink
Move type ascription
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Feb 4, 2021
1 parent 1333adf commit fc04bcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TupleOps {
def tupleMergeSort(tuple: Tuple): Tuple =
if (tuple.size <= 1) tuple
else {
val (tuple1: Tuple, tuple2: Tuple) = tuple.splitAt(tuple.size / 2) // TODO remove ascriptions (issue with type variable constraints)
val (tuple1, tuple2) = tuple.splitAt(tuple.size / 2): (Tuple, Tuple)// TODO remove ascriptions (issue with type variable constraints)
val (sorted1, sorted2) = (tupleMergeSort(tuple1), tupleMergeSort(tuple2))
tupleMerge(sorted1, sorted2)
}
Expand Down

0 comments on commit fc04bcd

Please sign in to comment.