Utility Functions and Types¶
Note
Functions and classes in this module are for internal usage only.
Classes¶
- class hymn.utils.CachedSequence¶
sequence wrapper that is lazy while keeps the items”
Functions¶
- hymn.utils.thread_first(sym, expr)¶
insert symbol into expression as second item
- hymn.utils.thread_last(sym, expr)¶
insert symbol into expression as last item
- hymn.utils.thread_bindings(thread_fn, init_value, exprs)¶
create a stream of symbol and expressions to be used in threading macros
- hymn.utils.constantly(c)¶
constant function
- hymn.utils.compose(f, g)¶
function composition
- hymn.utils.identity(x)¶
identity function
- hymn.utils.repeatedly(f)¶
repeatedly apply function f