16 lines
348 B
GDScript3
Raw Normal View History

2025-01-11 00:25:52 +01:00
static func is_empty_() -> Callable:
# """Determines whether an observable sequence is empty.
#
# Returns:
# An observable sequence containing a single element
# determining whether the source sequence is empty.
# """
var mapper = func(b : bool) -> bool:
return not b
return GDRx.pipe.compose2(
GDRx.op.some(),
GDRx.op.map(mapper)
)