Counts elements in the list. If the list is infinite, it hangs forever.
The finite list to count the length.
The number of elements in the list.
expect(length(empty())).toStrictEqual(0);expect(length(singleton(42))).toStrictEqual(1);expect(length(fromString("foo"))).toStrictEqual(3); Copy
expect(length(empty())).toStrictEqual(0);expect(length(singleton(42))).toStrictEqual(1);expect(length(fromString("foo"))).toStrictEqual(3);
Counts elements in the list. If the list is infinite, it hangs forever.