Properties
Similar Topics
Statistics
Comments
4
Participants
3
Subscribers
3
Votes
1
Views
915
Share
Answered
Hello,
Given a list of points, is there a command or script to automatically separate all points in this list to separated points so that I can interact with and connect with segments and etc...?
Bonus question: how can I determine the cardinality of a list?
I thought about:
i = 1
Repeat(cardinality(l1), Execute({"Element(l1, i)", "i = i +1"})
But it didn't work :( ... I also changed i into a parameter like this:
Repeat(cardinality(l1), Execute({"Element(l1, %1)", "%1 = %1 +1"}, i)
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
cardinality = Length
try
Whenever possible: use the version of Noel (more robust, faster)
In rare cases (e.g. filter over random numbers) you can use Repeat() or JS.
If you use Repeat():
The most robust syntax is as in the example with Execute(). Inside Execute() no restrictions exists.
The Execute list as an independent object in the Algebra View has the higher performance and can be more transparent(?)
Comments have been locked on this page!