0
$\begingroup$

Another quick question of mine.

If I want to assign variables to be some arrays in parallel, I can use a construct like

Evaluate[Array[list, 3]] = {#[3], #[4], #[5]} &[Range]

After that, list[i] gives the intended vector. Now is it possible to refer symbolically to the variable list[i] again, do some computational stuff with the symbol/variable and then replace it by its initial assignment?

And is it possible to reassign the variable list[i] without having to use Clear[]? If I call the upper command twice and change the ranges it cannot be reassigned of course because list[i] is automatically replaced by its previous definition.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.