Created
February 15, 2022 21:31
-
-
Save x-raizor/ab83d6ec792a6473e2bdc18157e9b1b6 to your computer and use it in GitHub Desktop.
Knock together words from the list pairwise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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