requireCompatible

abstract fun requireCompatible(shape: Shape<*, *>): Shape<S, A>

Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception.

Return

the same shape

Parameters

shape

the shape to check