19 مستودعات
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 is a framework for the construction of type-safe queries. It uses a fluent API and annotation-based code generation to create mirror classes from domain models, enabling compile-time validation of database queries and removing the need for manual string concatenation. The project provides a unified query syntax that translates into specific dialects for multiple backends, including SQL, MongoDB, Lucene, and JDO. It supports advanced query capabilities such as common table expressions, window functions, geospatial operations, and complex nested subqueries. Beyond data retrieval, the
Returns multiple columns from a query as a type-safe tuple for structured data access.
هذا المشروع هو ترجمة صينية لدليل شامل للغة البرمجة Go. يعمل كمورد تعليمي مترجم ودليل تقني مصمم لتقديم إرشادات حول قواعد اللغة، وتصميمها، وتطوير البرمجيات. يغطي المورد مجموعة واسعة من تعليم لغة Go، بما في ذلك تنفيذ أنماط البرمجة وتصميم الأنظمة. يتضمن دروساً وأمثلة مترجمة تركز على ميزات اللغة الأساسية مثل التزامن (concurrency) واستخدام الواجهات (interfaces). يمتد المحتوى ليشمل مجالات قدرات متنوعة، بما في ذلك أساسيات اللغة، ونمذجة البيانات، والانعكاس في وقت التشغيل (runtime reflection)، وإدارة الذاكرة. كما يوفر تغطية مفصلة لهندسة البرمجيات، ومعالجة الأخطاء، وضمان الجودة، وشبكات الويب. تم هيكلة التوثيق كدليل تقني يحتوي على محتوى مترجم، وتصويبات، وتصحيحات لضمان تعلم دقيق.
Explains how Go functions can return multiple values, a key pattern for error handling.
Borgo هي لغة ومترجم (compiler) مكتوب بنوع ثابت (statically typed) يحول الصيغة عالية المستوى إلى كود مصدر Go. تعمل كمترجم (transpiler) مصمم للاستفادة من بيئة تشغيل Go مع تقديم نظام أنواع يركز على أنواع البيانات الجبرية ومعالجة الأخطاء القائمة على النتائج. تتميز اللغة باستبدال قيم الإرجاع المتعددة في Go بأنواع النتائج والخيارات، باستخدام عامل تشغيل مخصص لنشر الأخطاء بشكل موجز. وتنفذ أنواع المجموع (sum types) مع مطابقة الأنماط الشاملة وتوفر أداة لإنشاء روابط لحزم Go الموجودة، مع تحويل إرجاع القيم المتعددة تلقائياً إلى مغلفات الأنواع الأكثر أماناً هذه. يتضمن النظام بدائيات للبرمجة المتزامنة، باستخدام قنوات مكتوبة ومهام خلفية لتنسيق العمليات غير المتزامنة. ويدعم نظام الأنواع الخاص بها تنفيذ الواجهات الهيكلية، والاستنتاج التلقائي لأنواع المجموعات، وكتل التنفيذ لتنظيم الطرق على الهياكل (structs).
Converts Go's multiple return values into single Result or Option types to eliminate nulls.
This repository is a collection of JavaScript coding challenges and a comprehensive interview guide. It provides reference implementations and educational examples designed to help developers master language fundamentals and prepare for technical interviews. The project covers a wide array of specialized implementations, including functional programming patterns like currying and partial application, as well as asynchronous patterns for concurrency control. It also includes practical examples of Document Object Model manipulation and the implementation of common data structures such as stacks
Shows how to return multiple data points from a single function using arrays or objects.
Returns هي مكتبة برمجة وظيفية لـ Python توفر حاويات آمنة من حيث النوع لإدارة الحالة، ومعالجة الأخطاء، والاختيارية. تعمل كمكتبة حاويات مونادية (monadic) وإطار عمل لمعالجة الأخطاء آمن من حيث النوع، حيث تستبدل كتل try-catch التقليدية وفحوصات null بحاويات Result و Optional لمعاملة الاستثناءات كبيانات. يتميز المشروع باستخدامه لمكون إضافي متخصص للتحليل الثابت Mypy للتحقق من خطوط الأنابيب الوظيفية ومحاكاة الأنواع ذات الرتب الأعلى. يوفر آليات لعزل الآثار الجانبية من خلال حاويات IO ويقدم إطار عمل لحقن التبعية الآمن من حيث النوع الذي يؤجل توفير التبعيات حتى التنفيذ النهائي للحساب. تغطي المكتبة نطاقاً واسعاً من البدائيات الوظيفية، بما في ذلك التجزئة (currying)، والتطبيق الجزئي، وتكوين خطوط أنابيب البيانات التصريحية. تدعم إدارة سير العمل غير المتزامن عن طريق تغليف الـ coroutines في حاويات لسلسلة العمليات غير المحظورة وتتضمن أدوات مساعدة لإدارة دورة حياة الموارد والتحقق من القوانين الجبرية للحاويات المخصصة.
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.
This project is a technical programming guide and educational resource focused on Go internals, runtime mechanisms, and advanced language features. It provides detailed conceptual analysis of the language's execution model, including its scheduler, memory escape analysis, and garbage collection mechanisms. The material distinguishes itself through deep dives into high-concurrency system design, exploring the implementation of worker pools and communication channels. It also covers low-level network programming with a focus on I/O multiplexing and TCP state management, alongside a study of dis
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.