Skip to content

Replace toList and mutableList usages with TreeList in all operations - #1038

Merged
Robotgiggle merged 3 commits into
FallingColors:1.21from
s5bug:vector-fixes-5
Aug 8, 2026
Merged

Replace toList and mutableList usages with TreeList in all operations#1038
Robotgiggle merged 3 commits into
FallingColors:1.21from
s5bug:vector-fixes-5

Conversation

@s5bug

@s5bug s5bug commented May 10, 2026

Copy link
Copy Markdown
Contributor

Stacked on #1033

@github-project-automation github-project-automation Bot moved this to 📋 Backlog in Hex Casting May 10, 2026
@s5bug
s5bug changed the base branch from main to 1.21 June 7, 2026 20:32
@s5bug
s5bug force-pushed the vector-fixes-5 branch 6 times, most recently from 2fee47a to 58cfaa4 Compare June 12, 2026 02:01
@s5bug
s5bug force-pushed the vector-fixes-5 branch 2 times, most recently from 055717b to 575fce3 Compare July 17, 2026 04:32
@s5bug
s5bug marked this pull request as ready for review July 17, 2026 04:34

@Robotgiggle Robotgiggle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good except the problem noted below

return listOf(ListIota(list), last)
val list = it.nextList(arity)
val last = if(list.isEmpty()) NullIota() else list.last()
return listOf(ListIota(list.init()), last)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the list was empty, this attempts to call init() on an empty list, which causes an UnsupportedOperationException

@github-project-automation github-project-automation Bot moved this from 📋 Backlog to 🏗 In progress in Hex Casting Aug 8, 2026
@s5bug
s5bug requested a review from Robotgiggle August 8, 2026 19:11

@Robotgiggle Robotgiggle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Robotgiggle
Robotgiggle added this pull request to the merge queue Aug 8, 2026
Merged via the queue into FallingColors:1.21 with commit efb1df7 Aug 8, 2026
7 of 8 checks passed
@github-project-automation github-project-automation Bot moved this from 🏗 In progress to ✅ Done in Hex Casting Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants