What is Nostr?
Ludovic Courtès /
npub15te…zz7y
2024-04-14 20:42:51
in reply to nevent1q…gqu2

Ludovic Courtès on Nostr: ;; OCaml example translated to Scheme. (use-modules (ice-9 match) (srfi srfi-71)) ...

;; 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))
Author Public Key
npub15teuvnz55q44z0xlq33dh02x7das02u79dxpah6fmaj9c5g70nwsqdzz7y