Properties
Category
English
Due On
2018-10-22
Similar Topics
Statistics
Comments
4
Participants
2
Subscribers
28
Votes
1
Views
677
Share
Answered
if i have L={"a",2,3,"h"} and i want to separate between them Lnumber={2,3} & Lletters={a,h}
how ?
- 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
© 2022 International GeoGebra Institute
I have test (successful) the following principle
- convert all in text
- convert the text in Unicode
- check is numeric (all character per element)
- save the index of numerical objecs in a separate list
- then extract the numerical objects from L with the Index above
- then extract the non-numerical objects from L (all other)
In Java-Script it's more ease: it's is possible to ask the object-type
BUT
this is not easy and expensive.
mixed object-types in the same list are not a good style (normally)
better: create separate lists for different object-types at the beginning
Note: when you can code the above principle, then is no problem for you to use the better style.
otherwise describe the problem and send the GGB file, presumably there is a solution.
Comments have been locked on this page!