Documentation Language: Swift

Function

asSequence(_:)

Converts a collection to a sequence.

func asSequence(_ collection: any EcoreValue) throws -> [any EcoreValue]

Parameters

collection

The collection to convert

Return Value

A new array representing the sequence

Discussion

The asSequence operation returns the collection as an ordered sequence. This is effectively a no-op in this implementation but provided for OCL compatibility.