---
title: "init(format:argumentArray:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsexpression/init(format:argumentarray:)"
---

# init(format:argumentArray:)

Creates the expression with the specified expression format and array of arguments.

## Declaration

```swift
init(format expressionFormat: String, argumentArray arguments: [Any])
```

## Parameters

- `expressionFormat`: The expression format.
- `arguments`: An array of arguments to be used with the expressionFormat string.

## Return Value

Return Value An initialized NSExpression object with the specified arguments.

## See Also

### Creating an Expression

- [init(expressionType:)](foundation/nsexpression/init(expressiontype:).md)
- [init(format:arguments:)](foundation/nsexpression/init(format:arguments:).md)
- [init(format:_:)](foundation/nsexpression/init(format:_:).md)
- [init(coder:)](foundation/nsexpression/init(coder:).md)
