pure - True is assertion that fn does not modify seq[i]
(self, fn, seq, pure=False)
| 82 | return self._new_apply("list", [as_apply(init)], {}, o_len=None, pure=True) |
| 83 | |
| 84 | def map(self, fn, seq, pure=False): |
| 85 | """ |
| 86 | pure - True is assertion that fn does not modify seq[i] |
| 87 | """ |
| 88 | return self._new_apply( |
| 89 | "map", [as_apply(fn), as_apply(seq)], {}, o_len=seq.o_len, pure=pure |
| 90 | ) |
| 91 | |
| 92 | def range(self, *args): |
| 93 | return self._new_apply("range", args, {}, o_len=None, pure=True) |