I'm trying to understand the solution for day 1 part 2: https://code.jsoftware.com/wiki/Essays/Advent_Of_Code#Part_2
PART2=: >: _1 i.~ +/\ 1 _1 mp '()'=/read'input'
I feel like I understand most of what's going on here but I'm not sure how to interpret the
i.~
part. I know what "i." generally does but I'm confused by the "~" here. My understanding is that "~" duplicates the right args to also be on the left. But here we already have a "_1" so I'm not sure how to interpret the semantics of this.
Also any tips on how to track this down myself are greatly appreciated.