Skip to content

Commit 1a79223

Browse files
committed
-
1 parent 24a1f12 commit 1a79223

File tree

1 file changed

+12
-1
lines changed
  • source_py3/python_toolbox/combi/perming

1 file changed

+12
-1
lines changed

source_py3/python_toolbox/combi/perming/perm.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ class PermItems(sequence_tools.CuteSequenceMixin, _BasePermView,
3535
'''
3636
A viewer of a perm's items, similar to `dict.items()`.
3737
38-
This lets you access the perm (both index access and iteration) where
38+
This is useful for dapplied perms; it lets you view the perm (both index
39+
access and iteration) as a sequence where each item is a 2-tuple, where the
40+
first item is from the domain and the second item is its corresponding item
41+
from the sequence.
3942
'''
4043

4144
def __getitem__(self, i):
@@ -44,6 +47,14 @@ def __getitem__(self, i):
4447

4548
class PermAsDictoid(sequence_tools.CuteSequenceMixin, _BasePermView,
4649
collections.Mapping):
50+
'''blocktododoc
51+
A viewer of a perm's items, similar to `dict.items()`.
52+
53+
This is useful for dapplied perms; it lets you view the perm (both index
54+
access and iteration) as a sequence where each item is a 2-tuple, where the
55+
first item is from the domain and the second item is its corresponding item
56+
from the sequence.
57+
'''
4758
def __getitem__(self, key):
4859
return self.perm[key]
4960
def __iter__(self):

0 commit comments

Comments
 (0)