MCPcopy Create free account
hub / github.com/SheafificationOfG/based-cpp / read_array

Function read_array

mergesort.cpp:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using Num = long long int;
7
8static constexpr auto read_array(auto array, auto len) noexcept {
9 return block_(
10 array[0] = io::read<Num>(),
11 if_(array[0] == none_)(
12 len = 0
13 )->else_(
14 for_(len = 1, io::read<char>() == ',', ++len)(
15 array[*len] = io::read<Num>()
16 )
17 )
18 );
19}
20
21static constexpr auto write_array(auto array, auto len) noexcept {
22 constexpr struct : local {} stack;

Callers 1

mergesort.cppFile · 0.85

Calls 5

block_Function · 0.85
if_Function · 0.85
for_Function · 0.85
read<char>Function · 0.85
else_Method · 0.80

Tested by

no test coverage detected