Lets define some information about the group we are part of at ClojureBridge.

In the previous section we defined ourselves as a collection, something like the following.


(def my-details ["John Stevenson" "37" "Clojure" "London" "North Yorkshire" 12])

my-details

We also defined simpler definitions to hold just our name


(def my-name "John Stevenson")

my-name

Hint: We can use both of these definitions in the next exercises.

So who are we?

We can use a Clojure collection to hold lots of values about the group we are in.

Define the group you are in and give that group a name


(def my-group [])

Here is a suggested example with a fictitious group

Nesting Collections

As we already defined my-name as a name that points to my full name, we can use my-name as part of the collection for my-group

Try Nesting Collections so you can include even more information


(def my-group [])

Here is a suggested example of a group with a nested collection.

Remember: Any names we define in this page will be available to any sections of code after the definition of that name.

Try defining more details about your group using vectors within vectors


(def my-group
  [

  ])

Here is a suggested example using the my-details name defined at the start of this section.

The name my-details is already associated with a vector collection containing my details, so its not necessary to put my-details in a vector as we can just use the name.