Results for “library”
Small, practical examples. Search by task or narrow things down below.
Collect unique sorted values
Collect unique sorted values in a complete Rust program using the standard library.
Rust✓ Tested
Combine Boolean conditions
Combine Boolean conditions in a complete Rust program using the standard library.
Rust✓ Tested
Combine independent validation errors
Combine independent validation errors using a complete Go program with explicit sample inputs.
Go✓ Tested
Combine text with a name
Python: Construct a greeting from a fixed prefix and a stored name.
Python✓ Tested
Combine text with a name
Java: Construct a greeting from a fixed prefix and a stored name.
Java✓ Tested
Combine two Boolean conditions
Combine two Boolean conditions using a complete Go program with explicit sample inputs.
Go✓ Tested
Combine two selections
jQuery: add returns a combined collection in document order.
jQuery✓ Tested
Compare a value with a limit
Python: Turn a comparison into a readable yes or no result.
Python✓ Tested
Compare a value with a limit
Java: Turn a comparison into a readable yes or no result.
Java✓ Tested
Compare ASCII text ignoring case
Compare ASCII text ignoring case in a complete Rust program using the standard library.
Rust✓ Tested
Compare floating-point calculations with tolerance
Python: Use isclose instead of exact equality for results affected by floating-point rounding.
Python✓ Tested
Compare floating-point results with a tolerance
Java: For this bounded example, compare the absolute difference against a chosen error threshold.
Java✓ Tested