Functional tools
funcy
is a library that provides functional tools. Examples are:
merge - Merges collections of the same type
walk - Type-preserving map
select - Selects a part of a collection
take - Takes the first n items of a collection
first - Takes the first item of a collection
remove - Predicated-removes items of a collection
concat - Concatenates two collections
flatten - Flattens a collection with subcollections
distinct - Returns only distinct items
split - Predicated-splits a collection
split_at - Splits a collection at a given item
group_by - Groups items by group
pairwise - Pairs off adjacent items
partial - Partially-applies a function
curry - Curries a function
compose - Composes functions
complement - Complements a predicate
all_fn - "all" with predicate
Linter | Message | Location |
---|---|---|
optional-tests Make sure tests are only run when requested | the 'check' phase should respect #:tests? |