How can I empty all sets except 1?
I only want to empty self declared sets.
I tried it with a for loop.
However I have some trouble comparing the name of the set with a string.
Kind regards, Wiet
Best answer by Chris Kuip
View originalBest answer by Chris Kuip
View originals_setsToBeEmptied {
subsetOf: AllIdentifiers ;
}
s_SetsToBeEmptied := data { s_A, s_B } ;
Empty s_SetsToBeEmptied ;
s_SetsToBeEmptied := modelName * allSets ;
self_declared_sets:= modelName * allSets ;
set self_declared_sets {
subsetOf: AllIdentifiers;
index: i_sds ;
}
set operated_upon_sets {
SubsetOf: self_Declared_sets ;
}
operated_upon_sets := { i_sds | not ( formatString("%e", i_sds) = "setNameToBeExcluded" ) }
Already have an account? Login
Please use your business or academic e-mail address to register
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Didn't find what you were looking for? Try searching on our documentation pages: