✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
What will the following Haskell code display (you can assume that the code works properly and print will output the result of the call to foo)
foo::[Int]->[Int]foo [] = []foo (a:b) = (foo b) ++ [a]print(foo [5,6,7,8])