Skip to content

Commit 953d2af

Browse files
committed
fixes #714
1 parent fa1098a commit 953d2af

3 files changed

Lines changed: 1442 additions & 181 deletions

File tree

fastcore/foundation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,6 @@ def copy(self:L):
307307
"Same as `list.copy`, but returns an `L`"
308308
return self._new(self.items.copy())
309309

310-
# %% ../nbs/02_foundation.ipynb
311-
@patch
312-
def cycle(self:L):
313-
"Same as `itertools.cycle`"
314-
return cycle(self)
315-
316310
# %% ../nbs/02_foundation.ipynb
317311
@patch
318312
def shuffle(self:L):
@@ -351,6 +345,12 @@ def setattrs(self:L, attr, val):
351345
"Call `setattr` on all items"
352346
[setattr(o,attr,val) for o in self]
353347

348+
# %% ../nbs/02_foundation.ipynb
349+
@patch
350+
def cycle(self:L):
351+
"Same as `itertools.cycle`"
352+
return cycle(self)
353+
354354
# %% ../nbs/02_foundation.ipynb
355355
def save_config_file(file, d, **kwargs):
356356
"Write settings dict to a new config file, or overwrite the existing one."

0 commit comments

Comments
 (0)