Function
isEmpty(_:)
Tests whether a collection or string is empty.
func isEmpty(_ value: any EcoreValue) throws -> EBoolean
Parameters
value-
The collection or string to check
Return Value
true if empty, false otherwise
Discussion
The isEmpty operation returns true if the collection has no elements or if the string has no characters.
Examples
let empty: [EInt] = []
let result = try isEmpty(empty) // Result: true
let text = "" as EString
let result2 = try isEmpty(text) // Result: true