Is ā€œlistā€ a type conversion here? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Is ā€œlistā€ a type conversion here?

In the ā€œmapā€ and ā€œfilterā€ lessons, is ā€œlistā€ a type conversion here? Or what is it?

24th Nov 2016, 8:50 AM
Juni Wen
Juni Wen - avatar
3 Respostas
+ 1
Agree. So, I wonder, if list is a function that converts the result of the map function, what kind of object does map return?
2nd Dec 2016, 10:17 AM
Avi Grabinsky
Avi Grabinsky - avatar
+ 1
I tested this with type function.map function returns an abject of class map. trying to print this directly just outputs a memory location
25th Feb 2017, 1:15 AM
Alan Beveridge
Alan Beveridge - avatar
0
OK, in the Generators lesson it's clearly stated that the list function. So it's a function that can convert to a certain type. One gets a bit confused after so much new input to the brainā€¦ lol
24th Nov 2016, 9:44 AM
Juni Wen
Juni Wen - avatar