Interface PatternComprehension.OngoingDefinitionWithoutReturn
- All Known Subinterfaces:
PatternComprehension.OngoingDefinitionWithPattern, PatternComprehension.OngoingDefinitionWithPatternAndWhere
- Enclosing class:
PatternComprehension
public static interface PatternComprehension.OngoingDefinitionWithoutReturn
Provides the final step of defining a pattern comprehension.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionreturning(Expression... listDefinition) Defines the returning exoression items.default PatternComprehensionDefines the returning named items.
-
Method Details
-
returning
Defines the returning named items.- Parameters:
variables- the elements to be returned from the pattern- Returns:
- the final definition of the pattern comprehension
- See Also:
-
returning
Defines the returning exoression items.- Parameters:
listDefinition- defines the elements to be returned from the pattern- Returns:
- the final definition of the pattern comprehension
-