MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / len

Method len

functional/pipeline.py:601–611  ·  view source on GitHub ↗

Return length of sequence using its length function. >>> seq([1, 2, 3]).len() 3 :return: length of sequence

(self)

Source from the content-addressed store, hash-verified

599 return n
600
601 def len(self):
602 """
603 Return length of sequence using its length function.
604
605 >>> seq([1, 2, 3]).len()
606 3
607
608 :return: length of sequence
609 """
610 self.cache()
611 return len(self._base_sequence)
612
613 def size(self):
614 """

Callers 8

sizeMethod · 0.95
tabulateMethod · 0.95
test_lenMethod · 0.80
test_group_by_keyMethod · 0.80
test_reduce_by_keyMethod · 0.80
test_count_by_keyMethod · 0.80
test_count_by_valueMethod · 0.80
test_wrap_pandasMethod · 0.80

Calls 1

cacheMethod · 0.95

Tested by 6

test_lenMethod · 0.64
test_group_by_keyMethod · 0.64
test_reduce_by_keyMethod · 0.64
test_count_by_keyMethod · 0.64
test_count_by_valueMethod · 0.64
test_wrap_pandasMethod · 0.64