IntegratedDynamics icon indicating copy to clipboard operation
IntegratedDynamics copied to clipboard

Make building lists of variables easier

Open josephcsible opened this issue 7 years ago • 8 comments

Issue type:

Only keep the issue types that are applicable.

  • :heavy_plus_sign: Feature request

Currently, it's easy to build lists of constants with "List" in the logic programmer. It's very difficult to build lists of variables, though. The easiest way is probably to take an empty list and keep applying "append". We should do something like adding "Var List" to the logic programmer, which would let you put in variable cards to make into a list all at once.

josephcsible avatar Feb 01 '18 01:02 josephcsible

Couldn’t you just treat variables as their signature and allow them to be added to lists like constants? That seems more in line with how Integrated Dynamics is conceptually designed.

It would be especially helpful to allow editing lists, by the way. It’s currently extremely tedious to do that:

  1. Create second list with elements to be added or removed
  2. Create variable that performs relevant operation using original list and list of changes
  3. Put both lists in Variable Store
  4. Put remaining variable in Materializer
  5. Put blank Variable Card in Materializer
  6. Use resulting list in place of original
  7. Clear three remaining Variable Cards

Saklad5 avatar Apr 02 '18 13:04 Saklad5

@Saklad5 See #357

rubensworks avatar Apr 03 '18 11:04 rubensworks

Ah, sorry. Still, my first paragraph still stands.

Saklad5 avatar Apr 03 '18 11:04 Saklad5

Could we get a way to say "append all cards in variable store" as a way to quickly make these types of lists? As in, a bunch of Block Reader cards placed alone in a variable store with a reader against it, then "Append from Variable Store" as an aspect?

Kyiki-Nasoka avatar Apr 08 '20 14:04 Kyiki-Nasoka

Does materialising the list not also materialise the variables within said list? Or do they remain dynamic?

shadow7412 avatar Sep 27 '22 04:09 shadow7412

Also, a method to build such a list using the variable store is proposed in #1218

shadow7412 avatar Sep 27 '22 04:09 shadow7412

Does materialising the list not also materialise the variables within said list? Or do they remain dynamic?

Materializing makes everything static, so any lists will become a copy of that moment

Kyiki-Nasoka avatar Sep 27 '22 04:09 Kyiki-Nasoka

That's what I thought - which makes that option unviable (at least for my usecase).

shadow7412 avatar Sep 27 '22 04:09 shadow7412