Files
lo/docs/data/it-isnotempty.md
T
2025-10-08 19:35:53 +02:00

526 B

name, slug, sourceRef, category, subCategory, signatures, playUrl, variantHelpers, similarHelpers, position
name slug sourceRef category subCategory signatures playUrl variantHelpers similarHelpers position
IsNotEmpty isnotempty it/type_manipulation.go#L59 it condition
func IsNotEmpty[T any](collection iter.Seq[T]) bool
https://go.dev/play/p/G7hH3jJ0De5
it#condition#isempty
core#slice#isnotempty
core#slice#isempty
10

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

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

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