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:
parent
d953bdd2e4
commit
93a4afe5d2
2 changed files with 3 additions and 0 deletions
|
@ -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()); }
|
||||
|
|
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue