How do I check if there is a specific value in the list in Clojure?

Asked 2 years ago, Updated 2 years ago, 114 views

I want to know how to check if there is a specific value in the list in the closure.

clojure list

2022-09-22 22:06

1 Answers

(prn (some #{200} '(100 101 102)))

You can do it like this.

Press Run below the code above to try executing the code.


2022-09-22 22:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.