civodul,
@civodul@toot.aquilenet.fr avatar

;; OCaml example translated to Scheme.
(use-modules (ice-9 match) (srfi srfi-71))

(define (self-convolution lst)
(define (visit suffix)
(match suffix
(()
(values lst '()))
((head . tail)
(let ((input output (visit tail)))
(values (cdr input)
(cons (cons head (car input))
output))))))

(let ((_ lst (visit lst)))
lst))

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines