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

Function head

include/fplus/container_common.hpp:2041–2045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2039// Unsafe! xs must be non-empty.
2040template <typename Container>
2041typename Container::value_type head(const Container& xs)
2042{
2043 assert(!is_empty(xs));
2044 return xs.front();
2045}
2046
2047// API search type: last : [a] -> a
2048// fwd bind count: 0

Callers 2

visitMethod · 0.70

Calls 1

is_emptyFunction · 0.70

Tested by

no test coverage detected