Why Nostr? What is Njump?
2024-04-14 20:42:51
in reply to

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