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.

rnd-symmetrical-position-swap

Featured Replies

;;; SWAPS THE POSITIONS SYMMETRICALLY AND RANDOMIZED 
;;; n => number of generations, output: last gen or all gens...
;;; new-version works also for symmetrical-sequences! (special cas)

(defun rnd-symmetrical-position-swap (n liste &key (out 'all))
  (let ((n1) (n2))
    (progn
      (setf liste (loop repeat n
                    do (setf n1 (random (1- (list-length-divide liste)))
                             n2 (random (1- (list-length-divide liste))))
                    collect (progn 
                              (setf liste (position-swap
                                           (list (list n1 n2) 
                                                 (list 
                                                  (- (1- (length liste)) n1)
                                                  (- (1- (length liste)) n2)))
                                           
                                           liste)))))
      (cond ((equal out 'last)
             (car (last liste)))
            ((equal out 'all)
             (append liste))))))


(rnd-symmetrical-position-swap 2 '(1 2 3 4 3 2 1) :out 'last)
(rnd-symmetrical-position-swap 5 '(1 2 3 4 5 6) :out 'last)
(rnd-symmetrical-position-swap 2 '(a b c d e f g h) :out 'all)

 

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

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.