Extract FE 1.0 related parts from NewConstraintSystem

This commit is contained in:
Dmitriy Novozhilov
2020-08-25 17:00:29 +03:00
parent be1033a4a7
commit e5e3d7cab1
7 changed files with 119 additions and 107 deletions
@@ -172,4 +172,8 @@ inline fun <T, R> Collection<T>.foldMap(transform: (T) -> R, operation: (R, R) -
result = operation(result, transform(iterator.next()))
}
return result
}
}
fun <E> MutableList<E>.trimToSize(newSize: Int) {
subList(newSize, size).clear()
}