하스켈로 knapsack problem 풀다가 발견한건데

xs :: List a 일 때

1번
xs ++ repeat undefined

2번
map head $ iterate tail xs


둘이 어떻게 다른지 설명할 수 있는 사람? ㅋㅋㅋㅋ