---
title: "callAsFunction(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/temporaltransformer/callasfunction(to:eventhandler:)"
---

# callAsFunction(to:eventHandler:)

Performs the transformation on a sequence of inputs.

## Declaration

```swift
func callAsFunction<S>(to input: S, eventHandler: EventHandler? = nil) async throws -> [Self.OutputSequence] where S : Sequence, Self.Input == S.Element.Feature, S.Element : TemporalSequence
```

## Parameters

- `input`: The transformer inputs.
- `eventHandler`: An event handler.

## Return Value

Return Value The outputs produced by applying the transformer to the inputs.

## See Also

### Transforming and predicting

- [callAsFunction(_:eventHandler:)](createmlcomponents/temporaltransformer/callasfunction(_:eventhandler:).md)
- [prediction(from:)](createmlcomponents/temporaltransformer/prediction(from:).md)
