MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / run_length_encode

Function run_length_encode

include/fplus/split.hpp:569–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567template <typename ContainerIn,
568 typename T = typename ContainerIn::value_type>
569auto run_length_encode(const ContainerIn& xs)
570{
571 return run_length_encode_by(is_equal<T>, xs);
572}
573
574// API search type: run_length_decode : [(Int, a)] -> [a]
575// fwd bind count: 0

Callers 2

problem_11Function · 0.50

Calls 1

run_length_encode_byFunction · 0.70

Tested by

no test coverage detected