How to make{0:0} to {0} in code?

i know we can right click the LC to use flatten.but, this time i need do the same thing in C# …


Simplify won’t work in that case when it has no other branches to simplify against, a common complaint about simplify.

List class has not simplify in C#…

Use IGH_Structure

But again that won’t do it, the description is “Simplify the data structure by removing path indices shared by all branches.” In your case there is no other branches to compare to"

1 Like

thankyou ,but it looks too difficult to me!

i use a structure.flatten(ghpath)to flatten a works.

See attached (for the “general” case of doing Lexer ops). (9.0 KB)

1 Like