tofu icon indicating copy to clipboard operation
tofu copied to clipboard

Make lenses for Tuple{N}

Open catostrophe opened this issue 4 years ago • 2 comments

Let tofu-optics users do this:

import tofu.optics.syntax.tupleN._

val lense = Tuple3._2[Int, String, Long]   // : Contains[(Int, String, Long), String]

tupleN object should contain all possible implicit extensions to Tuple{N} companion objects. Implementations should be macro generated.

catostrophe avatar Nov 12 '20 11:11 catostrophe