Get from one list to the other

I’ll bet the answer is simple but it’s eluding me

How to I get from top list to bottom using a script?

You can’t, because the top list will already be evaluated. no such thing as un-call().

if you meant put the top item of a list at the bottom...



if you meant reorder a list from last to first...

untitled script pic (5)

if you didn't mean either...

can you please clarify what, exactly, you mean?

It’s not clear what exactly do You want to do, but


Maybe result should be blockify-ied

This is correct, if what you have is the actual list, rather than the expression used to produce the list. It’s the same list you’d get from
pentagram script pic
and the list itself doesn’t know which expression you used to produce it.

If what you have is actually the expression, you can do what @dardoro suggests.

why not use the let block’s variadic functionality?

right. I mean, the OP’s post was really unclear so I am not entirely sure.

@dardoro solution is what I was after - sorry for not being clear.

Just for no apparent reason.

This was the end goal that I was after

If you’re fine using a different list block, then you can just use an any (unevaluated) variadic input.

My data is in this format

oopManipulate script pic (1)

So z is ALWAYS followed by a square root?

I’ve modified it to evaluate the inputs if they are strings (I guess I should’ve changed the block name too):

Now, @cymplecy, depending on your needs, you can either:


or

Nice. I tried to do that, but I just couldn’t figure out how to detect strings. I never thought to split an empty ring.

It’s an example of what I’m trying to achieve - the blocks were just picked at random

Follow up question
How to do it other way around - get from bottom to top?

Depending on your desired result, either:


or

If you want the above result with the block I or @ego-lay_atman-bay provided instead of the primitive list block, just replace the list block as shown:

Thanks