tvl-depot/users
sterni ad9b08e43d feat(sterni/nix/lists): implement transpose
This function is inspired by BQN's [⍉] though it is much less elegant
since Nix lacks multi-dimensional arrays. I thought this would be useful
to to avoid multiple `map`s over a single list if we want to return
multiple, separate values from it:

  transpose (builtins.map (x: [ (calcA x) (calcB x) ]) myList)

  # => [ [ (calcA a) … ] [ (calcB a) … ] ]

While this is quite elegant, it turns out that it is faster to write out
multiple maps:

  [ (builtins.map calcA myList) (builtins.map calcB myList) ]

[⍉]: https://mlochbaum.github.io/BQN/doc/transpose.html

Change-Id: Ic333c33af38ab03573b215c9696d75caf2ee18e7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11113
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
2024-03-10 18:05:32 +00:00
..
aaqaishtyaq chore(users/aaqaishtyaq): add OWNERS file 2022-12-10 17:28:57 +00:00
aspen feat(aspen/emacs): Begin a complete emacs config revamp 2024-02-26 21:16:58 +00:00
cynthia chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00
edef feat(users/edef/refscan): AArch64 support 2023-01-11 20:10:38 +00:00
ericvolp12 chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00
espes feat(users): add my folder 2024-02-20 06:25:35 +00:00
eta chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00
firefly chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00
flokli feat(users/flokli/ipu6-softisp): provide example closure 2024-03-07 14:43:02 +00:00
fogti fix(users): rename zseri -> fogti 2023-07-07 20:06:02 +00:00
j4m3s chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00
lukegb chore(users/lukegb/keys): -porcorosso-wsl +lukegb-build +lukegb-ca 2023-03-12 03:35:24 +00:00
padraic-o-mhuiris chore(users/padraic-o-mhuiris): Add OWNERS file 2024-01-30 13:58:46 +00:00
Profpatsch chore(users/Profpatsch/whatcd-resolver): slight changes 2024-03-03 13:31:27 +00:00
qyliss chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19 11:13:28 +00:00
sterni feat(sterni/nix/lists): implement transpose 2024-03-10 18:05:32 +00:00
tazjin chore(3p/sources): bump channels & overlays (2024-03-07) 2024-03-08 10:22:22 +00:00
wpcarro fix(users/wpcarro): fix warnings for renamed NixOS options 2024-02-27 09:06:33 +00:00
tvlbot.jpg chore(users/tazjin): Add avatar for tvlbot 2020-06-14 22:23:04 +00:00