born Posted March 6, 2023 Posted March 6, 2023 Is there a shorter way to write this in OM? (loop for i from 1 to 9 collect (* 100 i)) Quote
erka Posted March 6, 2023 Posted March 6, 2023 This gives the same result: (gen-integer 100 900 100) but just for your collect function. Check the function description Quote
born Posted March 7, 2023 Author Posted March 7, 2023 And what about (loop for i in '(4 3 6 1 2 5) collect (* i 100)) ? Quote
born Posted March 9, 2023 Author Posted March 9, 2023 On 3/7/2023 at 4:54 PM, opmo said: (a*x 100 '(1 2 3 4 5 6 7 8 9)) A nice one! There is no documentation in OM about this, only the function description (ctrl-y) Quote
erka Posted March 9, 2023 Posted March 9, 2023 You find it under Mathematics. There are a lot of useful functions. For some reason they are listed under a-m-x, a-d-x, but in the document you see a*x. Quote
opmo Posted March 9, 2023 Posted March 9, 2023 We can’t use * or / characters in the file names, sadly. erka 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.