All methods that have the same signature as those in std::collections now also have the same name. Some methods like insert and remove don't have the same return type (because Stainless collections return the newly created collection – they're immutable) but the names are now closer to std.
For the Scala getOrElse and apply there are no direct equivalents. However, as std::collection can be indexed, the apply was named index. getOrElse was named get_or in analogy of unwrap_or from std::option::Option.
Closes #144.
All methods that have the same signature as those in
std::collections
now also have the same name. Some methods likeinsert
andremove
don't have the same return type (because Stainless collections return the newly created collection – they're immutable) but the names are now closer tostd
.For the Scala
getOrElse
andapply
there are no direct equivalents. However, asstd::collection
can be indexed, theapply
was namedindex
.getOrElse
was namedget_or
in analogy ofunwrap_or
fromstd::option::Option
.