<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSExpression/init(format:arguments:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSExpression(cm)expressionWithFormat:arguments:"
  },
  "title" : "init(format:arguments:)"
}
-->

# init(format:arguments:)

Creates the expression with the specified expression format and arguments list.

```
init(format expressionFormat: String, arguments argList: CVaListPointer)
```

## Parameters

`expressionFormat`

The expression format.

`argList`

A list of arguments to be inserted into the `expressionFormat` string. The argument list is terminated by `nil`.

## Return Value

An initialized `NSExpression` object with the specified arguments.

## See Also

[`expressionWithFormat:`](/documentation/Foundation/NSExpression/expressionWithFormat:)

Creates the expression with the specified expression arguments.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)