Finished poset implementation added to the standard library, starting on getting types added and sorting, etc

This commit is contained in:
Nathan Braswell
2016-01-20 13:50:40 -05:00
parent 162cc98f30
commit 4ebb8bf107
6 changed files with 131 additions and 24 deletions

View File

@@ -33,7 +33,7 @@ obj set<T> (Object, Serializable) {
fun copy_construct(old: *set<T>) {
data.copy_construct(&old->data)
}
fun operator=(rhs: set<T>) {
fun operator=(rhs: ref set<T>) {
destruct()
copy_construct(&rhs)
}
@@ -82,7 +82,7 @@ obj set<T> (Object, Serializable) {
fun remove(item: T) {
var idx = data.find(item)
if (idx == -1) {
io::println("CANNOT FIND ITEM TO REMOVE")
/*io::println("CANNOT FIND ITEM TO REMOVE")*/
return
}
data.remove(idx)