0
How can I access iteration index in Ramda.map과 비슷하지만 배열에 대한 액세스 권한을 갖고 싶습니다.RamDA.map에서 반복 배열에 어떻게 액세스 할 수 있습니까?
Array.prototype.map
은 (item, index, arr) => {}
을받습니다. arr
에 Ramda.map
에 액세스하려면 어떻게해야합니까?
감사
How can I access iteration index in Ramda.map과 비슷하지만 배열에 대한 액세스 권한을 갖고 싶습니다.RamDA.map에서 반복 배열에 어떻게 액세스 할 수 있습니까?
Array.prototype.map
은 (item, index, arr) => {}
을받습니다. arr
에 Ramda.map
에 액세스하려면 어떻게해야합니까?
감사
링크 된 질문은 해당 콜백 함수에 두 개의 새로운 매개 변수를 추가하여이
기존에서 새 목록 반복 기능을 작성 지적
addIndex
에 대한 Ramda 문서를 인용 : 전류를 색인 및 전체 목록
따라서 addIndex
을 사용할 때 전체 목록이 이미 사용자의 기능에 제공됩니다.