julio d'escrivan Posted April 10, 2016 Share Posted April 10, 2016 Hi J, I am trying to run the distributive-square examples, evaluating all the previous lines before hand (with the exception of the ones that show the output!) so first I run: (setf ds-i2 (distributive-square (interference2 '(3 2)))) ;;then... (gen-length '8 ds-i2) and I get this: Error: The value 8 is not of the expected type list. > While executing: gen-length, in process Listener-1(7). > Type cmd-. to abort, cmd-\ for a list of available restarts. > Type :? for other options. Also, the argument and values list for this function only lists a sequence and nothing else... I imagine that the '8 is the number of times the sequence is generated? anyway, example does not work... Thank you! Julio Quote Link to comment Share on other sites More sharing options...
opmo Posted April 10, 2016 Share Posted April 10, 2016 Please check the documentation. (gen-length ds-i2 8) => (1/2 1/4 1/4 1/2 1/4 1/8 1/8 1/4 1/4 1/8 1/8 1/4 1/2 1/4 1/4 1/2) or (gen-length ds-i2 '(8 8 8 8)) => ((1/2 1/4 1/4 1/2) (1/4 1/8 1/8 1/4) (1/4 1/8 1/8 1/4) (1/2 1/4 1/4 1/2)) Quote Link to comment Share on other sites More sharing options...
julio d'escrivan Posted April 11, 2016 Author Share Posted April 11, 2016 er... thank you, I will, but what you see above was a cut and paste from the documentation... thanks for showing the right way but then the help example needs correcting, and accounting for all input arguments, no? here it is again straight from the help file: Examples: Using the function GEN-LENGTH to make the conversion to lengths: (gen-length '8 ds-i2) => (1/2 1/4 1/4 1/2 1/4 1/8 1/8 1/4 1/4 1/8 1/8 1/4 1/2 1/4 1/4 1/2) (gen-length '16 ds-i2) => (1/4 1/8 1/8 1/4 1/8 1/16 1/16 1/8 1/8 1/16 1/16 1/8 1/4 1/8 1/8 1/4) (gen-length '(8 16) ds-i2) => ((1/2 1/4 1/4 1/2) (1/8 1/16 1/16 1/8) (1/4 1/8 1/8 1/4) (1/4 1/8 1/8 1/4)) Quote Link to comment Share on other sites More sharing options...
opmo Posted April 11, 2016 Share Posted April 11, 2016 Indeed, this is a document error. Thank you for the report. Version 1.1.18705 fixed the docs. julio d'escrivan 1 Quote Link to comment Share on other sites More sharing options...
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.