Lazy array implementation, sort of like Clojure's seq
Extended iterable class, providing lazy array-like methods with automatic async and return/throw forwarding
提供陣列去重的工具函式,包含 indexOf 和 Set 兩種實現方式 / Provides array deduplication utilities with indexOf and Set implementation methods
Lazy Array some. Once fun returns non falsy value, that value is returned and search is suspended
A small lazy array class implementation.
Lazy-evaluating list of files, based on globs or regex patterns
Define a lazily evaluated property on an object
Extended iterable class, providing lazy array-like methods with automatic async and return/throw forwarding
diff with unified diff format handling
Lazy assertions without performance penalty
Fast, lazy array operations
lazy array-based sequences
Cache requires to be lazy-loaded when needed.
Lazy value.
Import a module lazily
Lazy lists for node
React Component to lazy load images using a HOC to track window scroll position.
Open Node Streams on demand.
Build chainable fluent interfaces the easy way... with a freakin' chainsaw!
Robust Environment Configuration for Universal Applications.
Simple Lazy Ranges for Node/Javascript
Utilities library for Angular
Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client
Array manipulation, ordering, searching, summarizing, etc.
A simple lib for creating lazy arrays, named lazzay
A lazy-loading, Array-like collection proxy for ActiveRecord that understands conditions and paging.
A lazy-loading, Array-like collection proxy for ActiveRecord that understands conditions and paging.
This gem provide lazy access method like array to IO object.
A Seq is created with an array, and optionally a number of elements to return, an offset to start at and a default item to return when ended. Call #next to return the next item. A Seq::Random will return randomly selected elements from the array. A Seq::Lazy will lazily evaluate a block to get the next element.
A DataMapper adapter for Amazon's SimpleDB service. Features: * Full set of CRUD operations * Supports all DataMapper query predicates. * Can translate many queries into efficient native SELECT operations. * Migrations * DataMapper identity map support for record caching * Lazy-loaded attributes * DataMapper Serial property support via UUIDs. * Array properties * Basic aggregation support (Model.count("...")) * String "chunking" permits attributes to exceed the 1024-byte limit Note: as of version 1.0.0, this gem supports supports the DataMapper 0.10.* series and breaks backwards compatibility with DataMapper 0.9.*.
== 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.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.