but what's the type of update?
if you have b : Board I (where I is the index set) then to do update(b,i,v) you know you want i : I, but what's I' in the result type Board I'? sure seems like it wants to be I - i ?
but what's the type of update?
if you have b : Board I (where I is the index set) then to do update(b,i,v) you know you want i : I, but what's I' in the result type Board I'? sure seems like it wants to be I - i ?
@chrisamaphonechris martens yes it is I - i! i spent way too long relearning the utilities but here's an impl in typescript: Playground Link. it's a not-so-uncommon pattern when typing HTML elements.
If you have a fediverse account, you can quote this note from your own instance. Search https://types.pl/users/atsuzaki/statuses/116087652912879860 on your instance and quote it. (Note that quoting is not supported in Mastodon.)