Hi,
I would like to know how to reinitialize/reset a generator. I mean, if
I for example have:
sage: generator = (n for n in range(1,1) if (is_prime(n) &
is_prime(n+2)))
And then i run generator.next() for example twice. How can i
reinitialize/rest this generator so that when i run generator
That's the opositte, i want, having a INMUTABLE sequence, make it
MUTABLE. Not the other way around.
On 8 ene, 22:56, Volker Braun wrote:
> The two possible ways are
>
> v = Sequence([1,2,3],immutable=True)
>
> or
>
> v = Sequence([1,2,3])
> v.set_immutable()
>
> You should never mess with "under
Hi all,
I would like to know how to make mutable an inmutable sequence. I have
been told there are two ways to do that:
The first way is using the flag v._is_immutable=False. Anyone can give
me a link to the SAGE documentation about this "_is_immutable" thing?
I really need something -a documenta