Results for “then”
Small, practical examples. Search by task or narrow things down below.
Merge two sorted sequences
C++: Both inputs must use the same ordering before merge is called.
C++✓ Tested
Modify a value through a mutable borrow
Modify a value through a mutable borrow in a complete Rust program using the standard library.
Rust✓ Tested
Move a collection out and leave an empty default
Move a collection out and leave an empty default in a complete Rust program using the standard library.
Rust✓ Tested
Move overlapping bytes safely
C: memmove supports overlapping ranges, unlike memcpy.
C✓ Tested
Move owned data into a worker
Move owned data into a worker in a complete Rust program using the standard library.
Rust✓ Tested
Name a template expression with @let
Name a template expression with @let with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Name a value that stays fixed
TypeScript: Use a constant declaration or the language’s constant naming convention for a fixed limit.
TypeScript✓ Tested
Name a value that stays fixed
C++: Use a constant declaration or the language’s constant naming convention for a fixed limit.
C++✓ Tested
Name a value that stays fixed
C: Use a constant declaration or the language’s constant naming convention for a fixed limit.
C✓ Tested
Narrow a union using typeof
Handle text and numeric values with separate branches.
union✓ Tested
Normalize a path without touching the filesystem
C++: lexically_normal removes redundant dot components using path syntax alone.
C++✓ Tested
Normalize an input with a transform
Normalize an input with a transform with a standalone Angular component and explicit browser behavior.
Angular✓ Tested