Skip to content

feat: add cat builtin — join list of text with separator#49

Closed
danieljohnmorris wants to merge 1 commit into
mainfrom
feature/builtin-cat
Closed

feat: add cat builtin — join list of text with separator#49
danieljohnmorris wants to merge 1 commit into
mainfrom
feature/builtin-cat

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Summary

  • Adds cat builtin: joins a list of text with a separator string, e.g. cat ["a","b","c"] "," returns "a,b,c"
  • Signature: cat(L t, t) -> t
  • Implemented across verifier (type checking), tree-walk interpreter, and register VM (OP_CAT opcode 48)

Test plan

  • Verifier: valid call, wrong type arg1 (number instead of list), wrong arity
  • Interpreter: basic join, empty list
  • VM: basic join, empty list
  • All 858 tests pass (746 unit + 112 integration)
  • cargo clippy clean (no new warnings)

@danieljohnmorris
Copy link
Copy Markdown
Collaborator Author

Superseded by #56 which combines all builtins + ternary with correct opcode numbering.

@danieljohnmorris danieljohnmorris deleted the feature/builtin-cat branch March 1, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant