scisco v0.1.0 Scisco.Utils View Source

Link to this section Summary

Functions

Convert key/value pairs into atom/value pairs

Normalize params into a map fulfilling the Scisco.Query.params() type.

Convert strings to atoms, keeps atoms.

Convert strings to integers, keeps integers.

Link to this section Functions

Link to this function

k2a(arg)

View Source
k2a({String.t() | atom(), any()}) :: {atom(), any()}

Convert key/value pairs into atom/value pairs

Link to this function

normalize_params(params)

View Source
normalize_params(nil | Enumerable.t()) :: nil | Scisco.Query.params()

Normalize params into a map fulfilling the Scisco.Query.params() type.

Link to this function

to_atom?(k)

View Source
to_atom?(String.t() | atom()) :: atom()

Convert strings to atoms, keeps atoms.

Convert strings to integers, keeps integers.