본문 바로가기

Ruby & Rails

[Ruby] Array.select, collect, map, inject

collect와 map은 같은 역할.. 내부로직은 다르겠으나 결과는 같음