37. // if list is empty then it should return ()
// Consider:
list.map(function) =
list.empty?(
()
list.first.function + list.rest.map(function)
).lazy-seq
38. // if list is empty then it should return ()
// Consider:
list.map(function) =
list.empty?(
()
().first.function + ().rest.map(function)
).lazy-seq
51. // Consider:
// So, given that the aforementioned functions
// work that way,
list.map(function) =
list.empty?(
()
()
).lazy-seq
52. // So, given that the aforementioned functions
// work that way, the list.empty? check is redundant.
// Consider:
list.map(function) =
list.empty?(
()
()
).lazy-seq
53. // So, given that the aforementioned functions
// work that way, the list.empty? check is redundant.
// It would return the same result either way.
// Consider:
list.map(function) =
list.empty?(
()
()
).lazy-seq
55. // Lets go back to where we started our consideration:
list.map(function) =
list.empty?(
()
()
).lazy-seq
56. // Lets go back to where we started our consideration:
list.map(function) =
list.empty?(
()
list.first.function + list.rest.map(function)
).lazy-seq
57. // Since list.empty? is redundant, we have:
list.map(function) =
list.empty?(
()
list.first.function + list.rest.map(function)
).lazy-seq
58. // Since list.empty? is redundant, we have:
list.map(function) =
(
list.first.function + list.rest.map(function)
).lazy-seq