Skip to content

Instantly share code, notes, and snippets.

@x-raizor
Created February 15, 2022 21:31
Show Gist options
  • Save x-raizor/ab83d6ec792a6473e2bdc18157e9b1b6 to your computer and use it in GitHub Desktop.
Save x-raizor/ab83d6ec792a6473e2bdc18157e9b1b6 to your computer and use it in GitHub Desktop.
Knock together words from the list pairwise
#lang racket
(define word-list (list "помада" "ревность" "сыр" "солнце" "трава"))
(define (words-knock-together word-list)
(when (> (length word-list) 1)
(map (lambda (x)
(displayln (string-append (first word-list) " " x))
;(displayln (string-append x " " (first word-list)))
) (rest word-list))
(words-knock-together (rest word-list))
))
(words-knock-together word-list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment