
Last chance! 50% off unlimited learning
Sale ends in
Create a string in MiniZinc
rminizinc::Expression
-> String
.value
string value
.value
string value
new()
constructor
String$new(val)
val
string input
getV()
get value
String$getV()
setV()
set value
String$setV(val)
val
string value
c_str()
get the MiniZinc representation
String$c_str()
clone()
The objects of this class are cloneable with this method.
String$clone(deep = FALSE)
deep
Whether to make a deep clone.
# NOT RUN {
newString = String$new("example")
newString$c_str()
newString$setV("new example")
newString$c_str()
# }
Run the code above in your browser using DataLab