Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

distributive-square examples don't run

Featured Replies

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

 

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))

 

  • Author

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))

 

Create an account or sign in to comment


Copyright © 2014-2026 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Important Information

Terms of Use Privacy Policy

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.