Last active
January 7, 2022 09:21
-
-
Save muthuishere/4c08a25c3771d547e7cebdacabe479f8 to your computer and use it in GitHub Desktop.
BCT Clojure Questions
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
(def avengers-data [{:dateofbirth "May 29, 1970", | |
:appearances | |
["Iron Man" | |
"The Incredible Hulk (post-credits scene)" | |
"Iron Man 2" | |
"Thor (mentioned)" | |
"The Avengers" | |
"Iron Man 3" | |
"Captain America: The Winter Soldier (photo & mentioned)" | |
"Avengers: Age of Ultron" | |
"Ant-Man (mentioned)" | |
"Captain America: Civil War" | |
"Guardians of the Galaxy Vol. 2 (mentioned; deleted scene)" | |
"Spider-Man: Homecoming" | |
"Thor: Ragnarok (mentioned)" | |
"Avengers: Infinity War" | |
"Avengers 4 "], | |
:realname "Tony Stark", | |
:affiliation | |
["MIT" | |
"Stark Industries" | |
"S.H.I.E.L.D." | |
"Avengers" | |
"Damage Control"], | |
:name "Iron Man", | |
:species "Human", | |
:citizenship "American", | |
:image | |
"https://vignette.wikia.nocookie.net/marvelcinematicuniverse/images/e/e9/Iron_Man_AIW_Profile.jpg/revision/latest?cb=20180518212029", | |
:actor "Robert Downey, Jr."} | |
{:dateofbirth "July 04, 1918", | |
:appearances | |
["Captain America: The First Avenger" | |
"The Avengers" | |
"Iron Man 3 (mentioned; deleted scene)" | |
"Thor: The Dark World (illusion)" | |
"Captain America: The Winter Soldier" | |
"Avengers: Age of Ultron" | |
"Ant-Man (post-credits scene)" | |
"Captain America: Civil War" | |
"Spider-Man: Homecoming (cameo)" | |
"Avengers: Infinity War" | |
"Ant-Man and the Wasp (mentioned; unreleased)" | |
"Avengers 4 "], | |
:realname "Steve Rogers", | |
:affiliation | |
["United States Army" | |
"United Service Organizations" | |
"United States Department of the Treasury" | |
"SSR" | |
"Howling Commandos" | |
"S.H.I.E.L.D." | |
"Avengers"], | |
:name "Captain America", | |
:species "Human", | |
:citizenship "American", | |
:image | |
"https://vignette.wikia.nocookie.net/marvelcinematicuniverse/images/6/66/Captain_America_AIW_Profile.jpg/revision/latest?cb=20180518211704", | |
:actor "Chris Evans"} | |
{:dateofbirth "December 18, 1969", | |
:appearances | |
["The Incredible Hulk" | |
"Thor (mentioned)" | |
"The Avengers" | |
"Iron Man 3 (post-credits scene)" | |
"Captain America: The Winter Soldier (mentioned)" | |
"Avengers: Age of Ultron" | |
"Captain America: Civil War (surveillance footage; mentioned)" | |
"Spider-Man: Homecoming (photograph; drawing; mentioned)" | |
"Thor: Ragnarok" | |
"Avengers: Infinity War" | |
"Avengers 4 "], | |
:realname "Bruce Banner", | |
:affiliation | |
["Harvard University" "Culver University" "Avengers" "Revengers"], | |
:name "Hulk", | |
:species "Human", | |
:citizenship "American, Sakaaran (formerly)", | |
:image | |
"https://vignette.wikia.nocookie.net/marvelcinematicuniverse/images/c/c3/Hulk_AIW_Profile.jpg/revision/latest?cb=20180518211829", | |
:actor "Mark Ruffalo, Edward Norton"} | |
{:dateofbirth "July 04, 0001", | |
:appearances | |
["Thor" | |
"Captain America: The First Avenger (drawing)" | |
"The Avengers" | |
"Iron Man 3 (mentioned)" | |
"Thor: The Dark World" | |
"Avengers: Age of Ultron" | |
"Captain America: Civil War (mentioned)" | |
"Doctor Strange (post-credits scene)" | |
"Spider-Man: Homecoming (drawing; mentioned)" | |
"Thor: Ragnarok" | |
"Avengers: Infinity War" | |
"Avengers 4 "], | |
:realname "Thor Odinson", | |
:affiliation ["Asgardian Royal Family" "Avengers" "Revengers"], | |
:name "Thor", | |
:species "Asgardian", | |
:citizenship "Asgardian", | |
:image | |
"https://vignette.wikia.nocookie.net/marvelcinematicuniverse/images/4/45/Thor_AIW_Profile.jpg/revision/latest?cb=20180518212120", | |
:actor "Chris Hemsworth"} | |
{:dateofbirth "November 22, 1984", | |
:appearances | |
["Iron Man 2" | |
"The Avengers" | |
"Captain America: The Winter Soldier" | |
"Avengers: Age of Ultron" | |
"Captain America: Civil War" | |
"Spider-Man: Homecoming " | |
"Thor: Ragnarok " | |
"Avengers: Infinity War" | |
"Avengers 4 "], | |
:realname "Natasha Romanoff", | |
:affiliation | |
["KGB" | |
"Red Room" | |
"S.H.I.E.L.D." | |
"STRIKE Team: Delta" | |
"Stark Industries" | |
"Avengers"], | |
:name "Black Widow", | |
:species "Human", | |
:citizenship "Soviet, Russian, American", | |
:image | |
"https://vignette.wikia.nocookie.net/marvelcinematicuniverse/images/5/50/Black_Widow_AIW_Profile.jpg/revision/latest?cb=20180518212205", | |
:actor "Scarlett Johansson"} | |
{:dateofbirth "January 07, 1971", | |
:appearances | |
["Thor" | |
"The Avengers" | |
"Avengers: Age of Ultron" | |
"Captain America: Civil War" | |
"Spider-Man: Homecoming (drawing)" | |
"Avengers: Infinity War (mentioned)" | |
"Avengers 4 "], | |
:realname "Clint Barton", | |
:affiliation ["S.H.I.E.L.D." "STRIKE Team: Delta" "Avengers"], | |
:name "Hawkeye", | |
:species "Human", | |
:citizenship "American", | |
:image | |
"https://vignette.wikia.nocookie.net/marvelcinematicuniverse/images/6/6f/CW_Textless_Shield_Poster_02.jpg/revision/latest?cb=20180417151836", | |
:actor "Jeremy Renner"}] | |
) |
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
;Complete the function to | |
;Print Multiplication Table till 10 | |
(defn generate-multiplication-table [n] | |
) | |
(comment | |
(generate-multiplication-table 2) | |
) |
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
;Create an expression for converting the following | |
[["Joker" , "Bat Man"] "CatWoman" ["Aqua Man" "King Orm"]] |
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
; What is the output of the following code? | |
(defn test-function [n] | |
(loop [i 1 res 1] | |
(if (> i n) | |
res | |
(recur (inc i) (* res i)) | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment