Q:

Clojure creating higher order first function

; Now create a function that takes a function (which produces a sequence)

; as an argument.  Your function should invoke that function and return and

; return the first element from the returned sequence.

(is (higher-order-first-function? __))

Guys it is actually a part of my homework. I have 1000 lines of codes to do. This is just a part that i could not figure out how to do it. Can anyone help me how to solve this ? I tried every possible way but. I could not pass the testing.

A:

So the steps are pretty clear from the comments:

Write a function that expects one parameter (use defn, fn, or #())
That parameter should be a function, so check for that (fn?)
Call that function
Return the first element in the returned sequence (first)

