FIND YOUR NEXT FEW LINES

Results for “Form serialization & state”

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

895 snippets foundClear filters
Arduino / CArrays & embedded state

Advance an index around a fixed collection

Arduino / C: Modulo wraps a bounded nonnegative index to zero.

Arduino / C✓ Tested
AngularSignals & state

Append to an array signal immutably

Append to an array signal immutably with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularTemplate-driven forms

Bind a multiline notes field

Bind a multiline notes field with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularTemplate-driven forms

Bind a numeric input value

Bind a numeric input value with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularTemplate-driven forms

Bind a radio-button group

Bind a radio-button group with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
JavaText validation & formatting

Build text efficiently in a loop

Java: Append to StringBuilder when constructing a string incrementally.

Java✓ Tested
CArray transformations

Calculate a cumulative sum for each position

C: Keep a running total and store each prefix result in a separate output array.

C✓ Tested
C#LINQ transformations

Calculate a product with Aggregate

C#: Supply a seed to define the result for an empty sequence.

C#✓ Tested
JavaStream transformations

Calculate several numeric stream statistics

Java: Use summaryStatistics to calculate count, sum, minimum, maximum, and average in one pass.

Java✓ Tested
AngularPipes & formatting

Capitalize words with TitleCasePipe

Capitalize words with TitleCasePipe with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
JavaText validation & formatting

Check a filename suffix

Java: Use endsWith for a case-sensitive literal suffix test.

Java✓ Tested
JavaText validation & formatting

Check a string prefix

Java: Use startsWith to check a literal Java prefix without a regular expression.

Java✓ Tested