Displaying 1 to 8 from 8 results

ast-traverse - simple but flexible AST traversal with pre and post visitors

  •    Javascript

Simple but flexible AST traversal with pre and post visitors. Works in node and browsers.

scelta - (experimental) Syntactic sugar for variant and optional types.

  •    C++

C++17 zero-overhead syntactic sugar for variant and optional. std::variant and std::optional were introduced to C++17's Standard Library. They are sum types that can greatly improve type safety and performance.

map-visit - Map `visit` over an array of objects.

  •    Javascript

Map visit over an array of objects. The above approach works fine for most use cases. But if you also want to emit an event each time a property is added to the data object. A better approach would be to use visit.

object-visit - Call the given method on each value in the given object.

  •    Javascript

Call a specified method on each value in the given object. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.




collection-visit - Visit a method over the items in an object, or map visit over the objects in an array

  •    Javascript

Visit a method over the items in an object, or map visit over the objects in an array. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

tree-crawl - :leaves: Agnostic tree traversal library.

  •    Javascript

Agnostic tree traversal library. If you are really concerned about performance, you could read items from the stack directly. Each item has a node and index property that you can use. The first item in the stack can be discarded and will have a node set to null. Be aware that you should not mutate the stack, or it will break the traversal.

foreach-combination - Visit all k-combinations of an array in lexicographic order

  •    Javascript

Enumerate all k length subsets in an array. If you want to use this in a browser, then you should use browserify.