Back to Lo

It Isnotempty

docs/data/it-isnotempty.md

1.53.0173 B
Original Source

Returns true if the collection is not empty, false otherwise.

go
result1 := it.IsNotEmpty(it.Range(1, 5))
// true

result2 := it.IsNotEmpty(it.Empty[int]())
// false