Q v1.0.0 Q View Source
Documentation for Q
.
Link to this section Summary
Functions
Breaks the string in fragments and then puts the fragments into an accumulator. For example, "x:0 y:1" would become %{"x" => 0, "y" => 1}
Cuts the operator from the value.
Creates a catch_param function to catch the param when it matches one of the operators, or fallback to a default.
Iterates shards against a given function, usually catch_param.
Puts the value in the accumulator, creating a value+operator map. When there's no operator, the value can be put directly passing :put, or the ignored with :acc, which returns the accumulator as is.
Link to this section Functions
Specs
Breaks the string in fragments and then puts the fragments into an accumulator. For example, "x:0 y:1" would become %{"x" => 0, "y" => 1}
Specs
Cuts the operator from the value.
Specs
Creates a catch_param function to catch the param when it matches one of the operators, or fallback to a default.
Specs
Iterates shards against a given function, usually catch_param.
Specs
put_value( operator :: nil | String.t(), acc :: map(), key :: String.t(), value :: String.t(), mode :: :acc | :put ) :: map()
Puts the value in the accumulator, creating a value+operator map. When there's no operator, the value can be put directly passing :put, or the ignored with :acc, which returns the accumulator as is.