elixir-explorer / explorer

Series (one-dimensional) and dataframes (two-dimensional) for fast and elegant data exploration in Elixir
https://hexdocs.pm/explorer
MIT License
1.12k stars 123 forks source link

Mathematical operations are newline dependent in `summarise` macro #964

Closed brendon9x closed 3 months ago

brendon9x commented 3 months ago

I'm sorry I haven't got the time to suggest a fix, but here's the problem shown by example:

Screenshot 2024-08-17 at 16 38 42

I know there a few gotchas with macros, but I am assuming this is bug.

josevalim commented 3 months ago

This is expected, the same way as

a
+ b

in Elixir will return only +b (as would many other languages). This also happens in Elixir inside parens because (...) are used to group both expressions and blocks.

brendon9x commented 3 months ago

Apologies – I did a search on Google, but I should have just tried in regular IEx.