Port the code below from {from_language} to {to_language} idiomatically.
SOURCE:
```{from_language}
{paste_source}
```
RULES:
- Use the IDIOMS of the target language, not a literal transliteration.
- Map standard library to standard library (eg. JS `Array.map` → Python `[ ... for ... in ... ]`, not `map(lambda)`).
- Keep variable names but convert casing convention (snake_case ↔ camelCase).
- Preserve behavior exactly, including edge-case handling and error semantics.
- If a feature has no idiomatic equivalent, write a 1-line comment explaining the trade-off.
OUTPUT:
1. The ported code
2. A short table of the 3-5 most important translation decisions
3. One thing the original was doing inefficiently that you fixed (or rejected fixing — say why)0 copies·0 saves·2 views
116 words·756 chars
Parameters
Text generation parameters
FAQ
A coding & development text prompt designed for Claude Opus. 116 words long, free to copy and use.
This prompt is written for Claude Opus. It's a text/chat prompt — paste it into Claude Opus (or compatible LLMs like Claude or GPT-4) to get the expected output.
1. Click the Copy button on this page to copy the full prompt. 2. Open Claude Opus. 3. Paste the prompt into a new conversation. 4. Replace any {placeholders} with your specifics, then send. Most prompts produce the right output on the first try; complex ones may need 1-2 iterations.
Yes — every prompt on mycopyprompt is free forever. No paywall, no signup wall for browsing or copying. You can use it for personal or commercial work, just don't redistribute the entire mycopyprompt library.
Absolutely — most prompts are templates. Look for {placeholders} (curly braces) and swap them with your own values. You can also reword sections, add constraints, or chain it with other prompts.
Similar prompts
Matched against every prompt in the catalog by title.