Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Cannot assign to constant value through lambda.
brad_phelan
Member Posts: 89 ✭✭
Attempt to do a standard functional programming trick
but I get that I cannot assign to "const" value. Is there any way to write generators in featurescript? I also tried.
to the same error. Have also tried arrays instead of maps. Nothing work to inject some state into the lambda.
but I get that I cannot assign to "const" value. Is there any way to write generators in featurescript? I also tried.
to the same error. Have also tried arrays instead of maps. Nothing work to inject some state into the lambda.
Tagged:
0
Comments
https://cad.onshape.com/documents/e39bbc03ade7ea27cba2656f/w/52a2f86fe05dfd95d6c5963b/e/23f61f89801e865ffacfaf55
https://cad.onshape.com/FsDoc/variables.html (see 'Box')