0

I am using an api that has the following function declaration:

API Expects:

ReprioritizeBoundaries(["NAME:NewOrder", <BoundName>, <BoundName>,...])

I have an array that I have created with all the BoundNames. Is there any way I can pass the array into the function such that it treats it like an argument list?

What I want to do:

array=[BoundName1, BoundName2, BoundName3]
ReprioritizeBoundaries(["NAME:NewOrder", array])

Update: I am using Python (IronPython (if it makes a difference))

1
  • Your array variable is not, technically, an array. It's a list. Commented Nov 4, 2014 at 16:42

1 Answer 1

1

Just concatenate the two lists:

array=[BoundName1, BoundName2, BoundName3]
ReprioritizeBoundaries(["NAME:NewOrder"] + array)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.