3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

add multi-argument select for C#

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-03-17 11:36:29 -07:00
parent d953bdd2e4
commit 93a4afe5d2
2 changed files with 3 additions and 0 deletions

View file

@ -39,11 +39,13 @@ namespace Microsoft.Z3
}
#endregion
/// <summary> Single argument select </summary>
public Expr this[Expr index]
{
get { return Context.MkSelect(this, index); }
}
/// <summary> Multi argument select </summary>
public Expr this[IEnumerable<Expr> index]
{
get { return Context.MkSelect(this, index.ToArray()); }

View file

@ -39,6 +39,7 @@ namespace Microsoft.Z3
}
#endregion
/// <summary> Access the nth element of a sequence </summary>
public Expr this[Expr index]
{
get { return Context.MkNth(this, index); }