tuck.path

Helpers for providing event -> path functions.

by-type

(by-type & types-and-paths)
Returns a function that dispatches to different path by the type of
the event. The types and events are alternating in the arguments.
The type may be a single type or a collection of types to easily add
the same path for multiple event types.