Results for “save file”
Small, practical examples. Search by task or narrow things down below.
Unpack a tuple with structured bindings
C++: Structured bindings give names to the parts of a returned compound value.
C++✓ Tested
Update a row on conflict
Use a primary key to insert or update one value.
upsert✓ Tested
Update a running count
Python: Change a variable after its initial value has been assigned.
Python✓ Tested
Update a running count
Java: Change a variable after its initial value has been assigned.
Java✓ Tested
Update a running count
JavaScript: Change a variable after its initial value has been assigned.
JavaScript✓ Tested
Update a running count
TypeScript: Change a variable after its initial value has been assigned.
TypeScript✓ Tested
Update a running count
C++: Change a variable after its initial value has been assigned.
C++✓ Tested
Update a running count
C: Change a variable after its initial value has been assigned.
C✓ Tested
Update a shared counter atomically
Java: AtomicInteger provides an indivisible increment operation for a shared counter.
Java✓ Tested
Update an object with a readonly input
Create a changed copy while retaining the original.
readonly✓ Tested
Use a counted Bash loop
Bash Scripts: Use a counted Bash loop with a small standalone Bash program.
Bash Scripts✓ Tested
Use a default value for an unset variable
Supply a fallback without changing the original variable.
parameter expansion✓ Tested