Skip to content

Instantly share code, notes, and snippets.

@PEZ
Last active September 7, 2021 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PEZ/fb5992733dcee8d4e449957ed7ece7db to your computer and use it in GitHub Desktop.
Save PEZ/fb5992733dcee8d4e449957ed7ece7db to your computer and use it in GitHub Desktop.
Subset and Superset – Rich 4Clojure Problem 161 – See: https://github.com/PEZ/rich4clojure
(ns rich4clojure.elementary.problem-161
(:require [hyperfiddle.rcf :refer [tests]]))
;; = Subset and Superset =
;; By 4Clojure user: hangkous
;; Difficulty: Elementary
;; Tags: [set-theory]
;;
;; Set A is a subset of set B, or equivalently B is a
;; superset of A, if A is "contained" inside B. A and B
;; may coincide.
(def __ :tests-will-fail)
(comment
)
(tests
__ := #{2}
#{1} := __
__ := #{1 2}
#{1 2} := __)
;; To participate, fork:
;; https://github.com/PEZ/rich4clojure
;; Post your solution below, please!
@evedes
Copy link

evedes commented Sep 7, 2021

#{1 2}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment