FIND YOUR NEXT FEW LINES

Results for “value”

Small, practical examples. Search by task or narrow things down below.

670 snippets foundClear filters
GoTesting & reusable helpers

Clamp a value to an allowed interval

Clamp a value to an allowed interval using a complete Go program with explicit sample inputs.

Go✓ Tested
RustGetting Started

Clone an owned value explicitly

Clone an owned value explicitly in a complete Rust program using the standard library.

Rust✓ Tested
RustTesting & reusable patterns

Collect borrowed values into owned strings

Collect borrowed values into owned strings in a complete Rust program using the standard library.

Rust✓ Tested
AngularServices & dependency injection

Collect multiple values through a multi provider

Collect multiple values through a multi provider with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
PostgresJSON & arrays

Collect ordered values into an array

Build a sorted array from query rows.

array_agg✓ Tested
HTMLForm behavior

Collect several checked values under one name

HTML: Only checked named checkboxes become successful form controls.

HTML✓ Tested
RustMaps & sets

Collect unique sorted values

Collect unique sorted values in a complete Rust program using the standard library.

Rust✓ Tested
SQLText cleanup & matching

Combine text values with a separator

SQL: Use the concatenation operator supported by the selected SQL dialect.

SQL✓ Tested
SQL ServerText cleanup & matching

Combine text values with a separator

SQL Server: Use the concatenation operator supported by the selected SQL dialect.

SQL Server✓ Tested
PostgresText cleanup & matching

Combine text values with a separator

Postgres: Use the concatenation operator supported by the selected SQL dialect.

Postgres✓ Tested
SQLiteText cleanup & matching

Combine text values with a separator

SQLite: Use the concatenation operator supported by the selected SQL dialect.

SQLite✓ Tested
AngularLifecycle & observable data

Combine the latest values from observables

Combine the latest values from observables with a standalone Angular component and explicit browser behavior.

Angular✓ Tested