Tagged articles
tuples
12 articles · Page 1 of 1
This article showcases eight often‑overlooked TypeScript capabilities—discriminated unions, as const,{ } tuples, template literal types, keyof + typeof, strict mode, noUncheckedIndexedAccess, and type augmentation—each with concrete examples and practical guidance on how they improve type safety and reduce boilerplate.
TypeScriptas constdiscriminated unions
0 likes · 7 min read

This guide explains why Java developers often need to return multiple values, introduces the javatuples library as a lightweight solution, and walks through adding the Maven dependency, using core tuple classes, creating tuples via factories or constructors, accessing and modifying elements, and converting tuples to collections or arrays.
Code ExamplesJavaMaven
0 likes · 9 min read

This guide explains Python tuples—immutable ordered collections—covering their definition, creation methods (including packing, unpacking, and single-element tuples), element access, common operations like concatenation, repetition, slicing, membership testing, length retrieval, nesting, and built‑in methods such as count, index, and conversion from lists.
ImmutablePythondata structures
0 likes · 11 min read

This tutorial introduces Python's core data structures—lists, dictionaries, sets, and tuples—and demonstrates essential file operations for text, CSV, and JSON formats, providing practical code examples for each concept and explains their characteristics, common operations, and best practices for efficient programming.
DictionariesJSONPython
0 likes · 7 min read

Learn how to define, initialize, access, destructure, and apply Rust tuples—including function returns, pattern matching, and limitations—through clear explanations and code examples that illustrate their flexibility and best-use scenarios for safer, more efficient Rust programming.
DestructuringRustpattern matching
0 likes · 5 min read

This article explains how Python's mutable list and dictionary types and immutable tuple type can be employed to organize test data, build request payloads, and parse JSON responses when automating API tests, providing clear code examples for each use case.
DictionariesPythondata structures
0 likes · 6 min read

TypeScript 5.2 beta introduces explicit resource management with a new using keyword, adds decorator metadata via context.metadata, and enhances tuples by allowing mixed labeled and unlabeled elements while improving union array type checking, all available now through npm or the VS Code nightly extension.
Decorator MetadataExplicit Resource ManagementTypeScript
0 likes · 9 min read

This article introduces Python's core built‑in sequence types—lists, tuples, dictionaries, and sets—explaining their characteristics, common operations, and performance considerations, and provides numerous interactive code snippets that demonstrate creation, indexing, slicing, modification, searching, sorting, and set algebra.
DictionariesPythonSets
0 likes · 11 min read

This article explains the unique features of Python’s plus‑equals (+=) operator, demonstrates its usage with simple and complex examples, explores the concept of mutable elements within immutable tuples, and provides sample code illustrating how these operators work under the hood.
Mutable Data StructuresOperatorPython
0 likes · 6 min read

This article reviews the most practical TypeScript enhancements since version 3.7—including optional chaining, private fields, inferred class properties, variadic and labeled tuples, recursive JSON types, improved error handling, unknown types, assertion functions, and type‑only imports—to help developers write more robust and maintainable code.
New Featuresassertion functionstuples
0 likes · 8 min read

This guide walks through Python’s fundamental data structures—strings, lists, tuples, dictionaries, and sets—showing how to create, manipulate, and query them with clear code examples for operations such as slicing, joining, sorting, and set mathematics.
DictionariesSetsdata structures
0 likes · 9 min read

The article introduces the upcoming C# 7.0 language enhancements—including output variables, pattern matching, extended switch statements, tuples, deconstruction, local functions, numeric literal improvements, ref returns, new async return types, and throw expressions—explaining their syntax, usage, and current preview limitations.
asynccsharplanguage features
0 likes · 17 min read
