Skip to content

🟢 Port problem 2703 (Return Length of Arguments Passed) from Swift to C++23 - #24

Open
AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-2703-return-length-of-arguments-passed
Open

AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-2703-return-length-of-arguments-passed

Conversation

@AF2B

@AF2B AF2B commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Converts swift/2703.swift to C++23 at solutions/2701-2800/2703-return-length-of-arguments-passed/.
  • The original LeetCode problem is JavaScript-specific (arguments.length); modeled here as a function over std::initializer_list<std::any>.
  • Removes the now-converted swift/2703.swift.

Base is chore/cpp23-migration (#4) — retarget to main once that lands.

Test plan

  • Verified locally with a standalone compile + assertions.
  • CI (build & test, static analysis, format check) passes.

… C++23

Replaces swift/2703.swift with
solutions/2701-2800/2703-return-length-of-arguments-passed/. The
original LeetCode problem is JavaScript-specific (arguments.length);
modeled here as a function over an initializer_list<std::any>.
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.

2 participants