uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.51k stars 106 forks source link

Map insertion doesn't insert correctly #523

Closed tankorsmash closed 1 month ago

tankorsmash commented 1 month ago

pad

[1_2 2_3 3_4]
"abc"
map

insert @b [9 9] # doesnt change the @b value as expected
&p.
insert @a [9 9] # does change @a as expected

I would have expected the @b value to be [9 9] instead of these following values getting split across lines for the first print:

stdout:
╭─            
╷ @a → [1 9]  
  @b → [9 3]  
  @c → [3 4]  
             ╯

having single elements as values seems to work fine though pad

kaikalii commented 1 month ago

Fixed in 0065e0b1b3a5954f1d0

tankorsmash commented 1 month ago

Wonderful, thank you!

On Sat, Jul 6, 2024, 6:36 PM Kai Schmidt @.***> wrote:

Fixed in 0065e0b https://github.com/uiua-lang/uiua/commit/0065e0b1b3a5954f1d038fa4a140b5c4b8d41397

— Reply to this email directly, view it on GitHub https://github.com/uiua-lang/uiua/issues/523#issuecomment-2212032301, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKANBWFSEIFGAU4OY2JG6LZLBWOBAVCNFSM6AAAAABKOUKLOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGAZTEMZQGE . You are receiving this because you authored the thread.Message ID: @.***>