19 Repos
Allows functions to return multiple values using named or unnamed return variables.
Distinct from Method Return Values: Existing candidates focus on block yield results or single method returns, not the ability to return multiple values.
Explore 19 awesome GitHub repositories matching programming languages & runtimes · Multiple Return Values. Refine with filters or upvote what's useful.
This project is a curated educational resource and solution repository for algorithmic challenges, specifically focused on LeetCode problems. It serves as a technical reference for common data structures and algorithmic patterns, providing verified code implementations across multiple programming languages alongside detailed logic and complexity analysis. The repository functions as a comprehensive study guide for competitive programming and technical interview preparation. It includes specialized learning tools such as an Anki flashcard dataset for spaced repetition and a browser extension t
Utilizes multi-value returns (tuples/lists) to propagate state during recursive tree traversals.
This project is a collection of technical reference guides and cheatsheets for implementing static typing patterns with TypeScript in React. It serves as a comprehensive typing guide for applying static types to components, hooks, and state management. The resource provides specific patterns for defining component properties, reference handles, and generic types. It includes detailed signatures for handling synthetic events, form submissions, and the creation of typed custom hooks using tuple assertions. The documentation covers a broad range of capability areas, including state management v
Implements typed custom hooks using tuple assertions to preserve specific return types and value stability.
This is a comprehensive tutorial for learning TypeScript, designed for JavaScript programmers who want to understand the language's type system and modern features. The resource covers TypeScript's core identity, including its structural type compatibility, compile-time type erasure, declaration file merging, and the discriminated union pattern for precise type narrowing. The tutorial distinguishes itself by providing a progressive learning path from basic JavaScript concepts to advanced TypeScript patterns. It covers generic type parameter constraints, tuple types with fixed-length positions
Teaches defining typed tuples with fixed-length positions and distinct types for mixed-type collections.
Odin is a compiled, statically typed systems programming language designed for high-performance software development. It focuses on pragmatic low-level memory control, providing a toolset for manual memory management and precise control over hardware utilization. The language is distinguished by its flexible memory model, which includes custom allocators and precise data layout capabilities to optimize resource usage. It features a comprehensive foreign function interface for importing assembly files and linking with external libraries using configurable calling conventions. The type system
Supports multiple return values from procedures using both named and unnamed variables.
This project is an interactive programming education resource and tutorial designed for learning the Rust programming language and systems programming concepts. It provides a collection of runnable and editable code examples that serve as a practical reference for language syntax and implementation. The resource features an interactive code sandbox that allows users to execute and test code snippets in real time. It emphasizes the verification of technical accuracy by executing embedded code blocks during the build process to ensure all examples remain functional. The content covers a compre
Demonstrates using tuples to group different types and return multiple values from functions.
100 Go Mistakes is a reference book and code review companion that catalogues frequent Go programming anti-patterns and provides corrected implementations for each one. It covers a wide range of common pitfalls, from range loop variable capture and interface nil handling to error wrapping and map iteration randomization, helping developers recognize and avoid these issues in their own code. The project distinguishes itself by offering a structured, example-driven approach to learning idiomatic Go. It covers core design decisions such as when to use pointer versus value receivers, how to apply
Recommends naming Go return values for readability.
This project is a functional programming compiler and JavaScript transpiler that transforms a statically typed language into optimized JavaScript for web browsers. It serves as a frontend architecture framework, providing a static type system and a package manager that enforces semantic versioning. The compiler uses a type-checking engine with automatic type inference to prevent runtime errors and guide code refactoring. It implements a structural pattern for managing application state and rendering user interfaces through a virtual DOM, utilizing immutable data and purity-based state transit
Combines a small, fixed set of values of different types into tuples to return multiple results.
This project is a comprehensive Lisp AI implementation library that provides reference implementations for various artificial intelligence paradigms and symbolic algorithms. It functions as a multi-purpose toolkit containing a logic programming engine, a natural language processing suite, and a symbolic mathematics toolkit. The library is distinguished by its diverse architectural frameworks, including a Prolog-style execution engine that uses unification and goal-driven backtracking, and a system for simulating human decision-making through expert system shells and certainty factors. It also
Allows a single function to output several distinct pieces of information simultaneously through multiple return values.
Defines functions that produce tuples of several distinct outputs in a single pass.
Elvish is a shell that combines interactive command-line use with a structured scripting language, designed to make both everyday terminal work and automation tasks more predictable and readable. It parses, compiles, and executes code in three phases, catching syntax and variable errors before any code runs, and it aborts execution on command failure by default to prevent silent errors. The shell introduces value-oriented pipelines that pass structured data like lists, maps, and closures between commands, preserving types without serialization. It also mixes traditional byte streams with thes
Assigns or captures multiple output values from a single command, with explicit list construction for grouping results.
Querydsl ist ein Framework für die Konstruktion typsicherer Abfragen. Es verwendet eine Fluent-API und annotationsbasierte Codegenerierung, um Spiegelklassen aus Domänenmodellen zu erstellen, was eine Validierung von Datenbankabfragen zur Kompilierzeit ermöglicht und die Notwendigkeit manueller String-Verkettung beseitigt. Das Projekt bietet eine einheitliche Abfragesyntax, die in spezifische Dialekte für mehrere Backends übersetzt wird, einschließlich SQL, MongoDB, Lucene und JDO. Es unterstützt fortgeschrittene Abfragefunktionen wie Common Table Expressions, Window-Funktionen, geospatiale Operationen und komplexe verschachtelte Subqueries. Über den Datenabruf hinaus deckt das Framework die typsichere DML-Ausführung für Massenaktualisierungen und -löschungen sowie das Result-Mapping in Java-Beans, Konstruktoren oder Tupel ab. Es beinhaltet Unterstützung für In-Memory-Collection-Abfragen und integriert sich in das Spring-Framework für Transaktionsmanagement und Verbindungsverwaltung.
Returns multiple columns from a query as a type-safe tuple for structured data access.
Dieses Projekt ist eine chinesische Übersetzung eines umfassenden Leitfadens zur Programmiersprache Go. Es dient als lokalisierte Bildungsressource und technisches Handbuch, das Orientierung zu Sprachsyntax, Design und Softwareentwicklung bietet. Die Ressource deckt ein breites Spektrum der Go-Sprachausbildung ab, einschließlich der Implementierung von Programmiermustern und Systemdesign. Sie enthält übersetzte Lektionen und Beispiele, die sich auf Kernfunktionen der Sprache wie Concurrency und die Verwendung von Interfaces konzentrieren. Der Inhalt umfasst verschiedene Kompetenzbereiche, darunter Sprachgrundlagen, Datenmodellierung, Runtime-Reflection und Speicherverwaltung. Zudem bietet es detaillierte Abhandlungen zu Softwarearchitektur, Fehlerbehandlung, Qualitätssicherung und Web-Networking. Die Dokumentation ist als technisches Handbuch strukturiert, das übersetzte Inhalte, Errata und Korrekturen enthält, um ein präzises Lernen zu gewährleisten.
Explains how Go functions can return multiple values, a key pattern for error handling.
Borgo ist eine statisch typisierte Sprache und ein Compiler, der High-Level-Syntax in Go-Quellcode transformiert. Er fungiert als Transpiler, der darauf ausgelegt ist, die Go-Laufzeitumgebung zu nutzen und gleichzeitig ein Typsystem einzuführen, das auf algebraischen Datentypen und ergebnisbasierter Fehlerbehandlung basiert. Die Sprache zeichnet sich dadurch aus, dass sie Gos Mehrfachrückgabewerte durch Result- und Option-Typen ersetzt und einen dedizierten Operator für prägnante Fehlerfortpflanzung verwendet. Sie implementiert Summentypen mit exhaustivem Pattern Matching und bietet ein Tool zur Generierung von Bindings für bestehende Go-Pakete, wobei Mehrfachrückgaben automatisch in diese sichereren Typ-Wrapper konvertiert werden. Das System enthält Primitive für die parallele Programmierung und nutzt typisierte Channels sowie Hintergrundaufgaben zur Koordination asynchroner Prozesse. Ihr Typsystem unterstützt zudem die Implementierung struktureller Interfaces, automatische Typinferenz für Collection-Typen und Implementierungsblöcke zur Organisation von Methoden auf Structs.
Converts Go's multiple return values into single Result or Option types to eliminate nulls.
Dieses Repository ist eine Sammlung von JavaScript-Coding-Challenges und ein umfassender Interview-Leitfaden. Es bietet Referenzimplementierungen und pädagogische Beispiele, die Entwicklern helfen sollen, Sprachgrundlagen zu beherrschen und sich auf technische Interviews vorzubereiten. Das Projekt deckt eine breite Palette spezialisierter Implementierungen ab, darunter funktionale Programmiermuster wie Currying und partielle Anwendung sowie asynchrone Muster für die Nebenläufigkeitskontrolle. Es enthält zudem praktische Beispiele für die Manipulation des Document Object Models und die Implementierung gängiger Datenstrukturen wie Stacks und Queues. Die Sammlung umfasst fortgeschrittene Sprachfeatures, Implementierungen von Designmustern und die Manipulation von Datenstrukturen. Sie adressiert einen Bereich, der asynchrone Programmierung, DOM-Interaktion, objektorientierte Erzeugungsmuster und Low-Level-Primitive umfasst.
Shows how to return multiple data points from a single function using arrays or objects.
Returns ist eine Bibliothek für funktionale Programmierung für Python, die typsichere Container zur Verwaltung von Zustand, Fehlerbehandlung und Optionalität bereitstellt. Sie dient als monadische Container-Bibliothek und typsicheres Fehlerbehandlungs-Framework, das traditionelle Try-Catch-Blöcke und Null-Checks durch Result- und Optional-Container ersetzt, um Ausnahmen als Daten zu behandeln. Das Projekt zeichnet sich durch die Verwendung eines spezialisierten Mypy-Plugins zur statischen Analyse aus, um funktionale Pipelines zu validieren und Higher-Kinded-Types zu emulieren. Es bietet Mechanismen zur Isolierung von Seiteneffekten durch IO-Container und bietet ein Framework für typsichere Dependency-Injection, das die Bereitstellung von Abhängigkeiten bis zur finalen Ausführung einer Berechnung aufschiebt. Die Bibliothek deckt ein breites Spektrum funktionaler Primitive ab, einschließlich Currying, partieller Anwendung und der Komposition deklarativer Datenpipelines. Sie unterstützt asynchrones Workflow-Management durch das Einwickeln von Coroutines in Container, um nicht-blockierende Operationen zu verketten, und enthält Utilities für das Ressourcen-Lebenszyklusmanagement sowie die Verifizierung algebraischer Gesetze für benutzerdefinierte Container.
Sequences multiple container-wrapped values into a single result using a linear syntax that handles wrapping automatically.
coobjc is an Objective-C coroutine library that provides await methods and generators to simplify asynchronous programming in Objective-C and Swift. It enables the implementation of non-blocking workflows to eliminate nested callbacks and thread blocking. The toolkit includes a non-blocking Foundation wrapper to convert synchronous Foundation and UIKit APIs into suspendable operations. It provides a lazy sequence generator for producing values on demand via yield, as well as a channel-based communication tool for exchanging data between concurrent tasks using buffered and unbuffered channels.
Allows functions to return multiple values grouped into a single package for asynchronous retrieval.
Dieses Projekt ist ein technischer Programmierleitfaden und eine Bildungsressource, die sich auf Go-Internals, Laufzeitmechanismen und fortgeschrittene Sprachfeatures konzentriert. Es bietet eine detaillierte konzeptionelle Analyse des Ausführungsmodells der Sprache, einschließlich ihres Schedulers, der Memory-Escape-Analyse und der Garbage-Collection-Mechanismen. Das Material zeichnet sich durch Deep Dives in das Design hochkonkurrenter Systeme aus und erforscht die Implementierung von Worker-Pools und Kommunikationskanälen. Es behandelt zudem Low-Level-Netzwerkprogrammierung mit Fokus auf I/O-Multiplexing und TCP-Zustandsverwaltung sowie eine Studie zur Theorie verteilter Systeme unter Anwendung von CAP- und BASE-Theoremen auf skalierbare Services. Der Umfang erstreckt sich auf Performance-Optimierung mittels CPU- und Memory-Profiling, Modul-Abhängigkeitsmanagement und Integritätsprüfung sowie die Anwendung von Softwarearchitektur-Prinzipien wie Dependency Inversion. Es untersucht zudem das polymorphe Verhalten des Typsystems und die Internals der automatisierten Speicherverwaltung.
Details how deferred blocks can modify named return parameters to change a function's final result.
Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and Bash compatibility. It functions as a structured data shell, integrating JSON and J8 formats to manage complex data without relying on string parsing. The system is distinguished by a C++ transpiled interpreter that converts a subset of Python source code into strongly typed C++ for high-performance execution. It features a garbage-collected typed runtime that supports prototype-based polymorphism, lexical closures, and reference-based variable mutation. To decouple shell logic
Deno Shell returns values from a procedure using named out-parameters instead of modifying the caller's scope.
rgthree-comfy is a collection of custom nodes and interface enhancements designed to automate and organize generative AI workflows within ComfyUI. It provides a specialized toolset for node-based automation, dynamic data routing, and graph management. The project distinguishes itself through a dynamic data router and workflow management tools that enable bulk muting, bypassing, and navigation of complex node graphs via bookmarks and visual labels. It also includes logic and math nodes for evaluating expressions and image processing utilities for side-by-side comparisons and precise cropping.
Allows a single expression to return multiple values as a tuple to drive several downstream nodes.