7 repositorios
Identifies variable-length sequences of items within an input that match a segment variable.
Distinct from Pattern Matching: Specializes in matching sequences of arbitrary length, unlike generic structural pattern matching
Explore 7 awesome GitHub repositories matching part of an awesome list · Variable-Length Segment Matching. Refine with filters or upvote what's useful.
30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and immediate reuse. It provides an interactive browser that lets you explore snippets organized by tags, search across names and descriptions, and copy code to your clipboard with a single click. The collection covers a broad range of common programming tasks, including list and dictionary operations, string formatting and manipulation, date and time calculations, and color format conversion. It also includes utilities for data transformation, such as converting between case styl
Provides functions to locate list elements matching a test condition, returning first, last, or all matches.
Penrose is a compiler that transforms structured mathematical notation into optimized SVG diagrams. It uses a three-stage pipeline of separate domain, substance, and style files to define mathematical objects, relationships, and visual presentation, then solves continuous optimization problems with user-defined spatial constraints and objectives to automatically arrange diagram elements. The system separates diagram content from visual style using distinct declarative languages, and provides a typed domain language with subtype hierarchies for mathematical objects. It supports embedding compi
Groups multiple Substance objects into named collections for aggregate operations across diagram elements.
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
Identifies sequences of items in an input that match a segment variable for variable-length matching.
Supports matching lists with exact element counts using constructor syntax.
This is a TC39 proposal to add declarative pattern matching syntax to the ECMAScript language. It introduces a match expression that allows developers to inspect and branch on data structures using patterns with destructuring, guards, and logical combinators. The proposal defines a custom matcher protocol via a well-known symbol, enabling objects to implement user-defined matching logic with arbitrary extraction and decomposition. The proposal supports matching against literal primitives using SameValue equality with special handling for signed zero and NaN, as well as relational comparison
Matches iterable values against nested element patterns with optional variable binding.
Este proyecto es un plugin de máscara de entrada de jQuery y biblioteca utilizada para aplicar formatos específicos en campos de formulario y elementos HTML. Funciona como una herramienta de enmascaramiento y saneamiento de entrada de formulario que restringe la entrada de caracteres e inserta automáticamente delimitadores para patrones como fechas y números de teléfono. La biblioteca admite un enmascaramiento flexible a través de patrones opcionales y recursivos que se expanden o contraen según el volumen de datos ingresados. Proporciona gestión dinámica de máscaras, permitiendo que las reglas de formato se cambien o eliminen en elementos existentes sin recargar la página. La herramienta incluye capacidades para lógica de máscara personalizada y definición de patrones para controlar qué entradas alfanuméricas están permitidas. También cuenta con saneamiento de datos de entrada para eliminar caracteres que no pertenecen a la máscara antes del envío al servidor y un sistema de respaldo para reemplazar caracteres no válidos con dígitos predefinidos.
Manages flexible input patterns to handle data with varying lengths like IP addresses and currency amounts.
more-itertools es una biblioteca de extensión para el módulo itertools de Python. Sirve como un toolkit para manipular iterables, proporcionando una amplia gama de rutinas para transformación de datos, generación combinatoria y gestión de estado de iteradores. La biblioteca se distingue por la gestión de estado avanzada y la generación de secuencias complejas. Proporciona capacidades para observar elementos futuros, buscar dentro de secuencias y producir permutaciones, combinaciones y particiones de conjuntos únicas a partir de colecciones que pueden contener elementos duplicados. Su superficie de capacidades más amplia cubre tareas de procesamiento de datos como aplanamiento recursivo, agrupación, relleno y reformateo de flujos de datos. También incluye utilidades para fusión de flujos, ventanas para análisis de vecindad local y sincronización de iteración segura para hilos. El proyecto proporciona además rutinas especializadas para el procesamiento de secuencias numéricas, incluyendo multiplicación de matrices, convolución lineal discreta y transformadas de Fourier.
Implements a mechanism to substitute items or subsequences that match a predicate with elements from another collection.