aloisdg
Any update on a transpose function?
Any news about adding a transpose function to the standard lib? It was discussed on the mailing list in 2021, but nothing since.
Transposing lists are a quite common operation and people often talk about it online like on this forum. From working with CSV, to doing the advent of code, transposing matrix is everywhere.
- The impact on the eco-system would be limited. This is just another function.
- The impact on learning would be good since this function is quite common in other language. Even VBA has it.
- This suggestion is easily implemented with the state of Elixir
- Some people wont need it but others will be grateful to find it.
cheers,
Most Liked
benwilson512
There is a transpose function in Explorer which I think is a better fit than the standard library. Lists of lists are just flat not an efficient structure on which to do matrix operations, and I don’t think it makes sense to build a set of functions around using them for that purpose.
LostKobrakai
Isn‘t Enum.zip_with(nested, & &1) what you‘re looking for?
benwilson512
Serious question: when are you rotating a list of lists in Elixir? Advent of code and other puzzles don’t count.
Explorer and Nx were created by the creators of elixir explicitly to do number crunching operations in the language. Given the extra dependencies involved and the relatively specialized area of work for those operations within the general use cases of the language.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








