A library for expressing filter predicates and evaluating them against values
A collection of useful functions to throw into `Array.filter()`.
Fast robust predicates for computational geometry
A little library for asserting types and values, with zero dependencies.
Simple `and` and `or` functional programming predicates
Tools for manipulating ApiDOM structures.
OpenAPI 3.1.x namespace for ApiDOM.
JSON Schema 2019-09 namespace for ApiDOM.
API Design Systems 2021-05-07 namespace for ApiDOM.
OpenAPI 2.0 namespace for ApiDOM.
JSON Schema 2020-12 namespace for ApiDOM.
AsyncAPI 3.x.y namespace for ApiDOM.
Arazzo Specification 1.0.1 namespace for ApiDOM.
OpenAPI 3.2.x namespace for ApiDOM.
DSL that enables you to navigate and find data within your JSON documents
Scalable and extensible linked data views.
A set of predicate functions to improve your value testing and comparisons.
Simple runtime TypeScript validator library
JSON Schema Draft 7 namespace for ApiDOM.
Workflows Specification 1.0.0 namespace for ApiDOM.
A comprehensive collection of performant type guards and assertions with excellent TypeScript support
Set of various predicates for type checking, assertions, filtering etc
Underlying schema language parsed from arktype syntax.
Typed query AST for MongoDB aggregation pipelines
Powerful object-based searching and filtering for Active Record with advanced features like complex boolean queries, association searching, custom predicates and i18n support.
Filter collections using predicates like Ransack gem.
Filter collections using predicates like Ransack gem.
A tiny utility for concise error handling. Wrap risky expressions with Try.call, chain fallbacks with or_else and or_try, filter with predicates, handle specific exceptions, use Ruby 3.x pattern matching, and add timeout constraints — all without verbose begin/rescue blocks.
r_cal is a fast CLI tool for Google Calendar with natural language date parsing, event management, ICS import, and predicate filtering. Built with cli-kit for snappy performance.
Add MCP tool serving to any Rails app. Write @rbs type annotations with predicate tags (@requires, @feature, or custom) and the gem compiles per-user JSON Schema automatically — filtering fields by permissions, feature flags, and plan tiers at request time.
== Synopsys Ruby Enumerable extension. Main idea is lazy computations within enumerators. == Usage Install as a gem: sudo gem install deferred_enum This gem introduces DeferredEnumerator class: ary = [1, 2, 3, 4] deferred = ary.defer # #<DeferredEnumerator: [1, 2, 3, 4]:each> DeferredEnumerator brings some optimizations to all?, any? and none? predicates deferred.all?(&:even?) # Will stop iteration after first false-result = 1 iteration deferred.none?(&:even?) # 2 iterations deferred.any?(&:even?) # 2 iterations It also introduces lazy versions of Enumerable's #select, #map and #reject methods deferred.map { |i| i + 1 } # #<DeferredEnumerator: #<Enumerator::Generator>:each> deferred.select { |i| i.even? } # #<DeferredEnumerator: #<Enumerator::Generator>:each> deferred.reject { |i| i.odd? } # #<DeferredEnumerator: #<Enumerator::Generator>:each> So you can safely chain your filters, they won't be treated as arrays: deferred.map(&:succ).select(&:even?) # #<DeferredEnumerator: #<Enumerator::Generator>:each> You can build chains of Enumerables: deferred.concat([2]).to_a # [1, 2, 3, 4, 2] Or append elements to the end of enumerator: deferred << 2 You can even remove duplicates from enumerator, though this operation can be tough: deferred.uniq # #<DeferredEnumerator: #<Enumerator::Generator>:each> There are many other methods in DeferredEnumerator, please refer to documentation.
No description provided.
No description provided.
No description provided.
No description provided.