Tuple projections #452
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: radrow
Tuple projections are awkward, even considering standard library which offers
fst
,snd
etc. for pairs and triples. There should be a convenient generic way of accessing them:It's to be discussed if we prefer indexing from 0 or 1. For reference, Erlang and Scala do it from 1, while Python and JS prefer 0. Note that computationally it does not matter, because the index has to be a fixed (syntactically) integer due to type consequences.