Variation on Iota
2 months ago
- #algorithm
- #APL
- #array-programming
- Problem: Find the location of each item in a list of lists of items.
- First solution: Flatten the list and map indices back to the original nested array.
- Second solution: Use outer product of membership to find first occurrence of each item.
- Optimized flat array solution using interval index provided by Josh David.
- Alternative solution using Where (���) in monadic form suggested by Aaron Hsu.
- Tribute to Roger Hui for his contributions to the discussion of ���.
- Historical function 'ComputeRange' mentioned, originally from Gary Bergquist.