From: Siraaj Khandkar Date: Sun, 4 Oct 2015 05:51:18 +0000 (-0400) Subject: Rename interleave to list_interleave X-Git-Tag: 1.0.0~2 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=e86061d0f13b72a2ea04a96c5c0a6585b58a7beb;p=beam_stats.git Rename interleave to list_interleave --- diff --git a/src/beam_stats_msg_graphite.erl b/src/beam_stats_msg_graphite.erl index bd5f3b4..73b770c 100644 --- a/src/beam_stats_msg_graphite.erl +++ b/src/beam_stats_msg_graphite.erl @@ -83,7 +83,7 @@ to_iolist( -spec path_to_iolist([binary()]) -> iolist(). path_to_iolist(Path) -> - interleave(Path, <<".">>). + list_interleave(Path, <<".">>). -spec node_id_to_bin(node()) -> binary(). @@ -105,14 +105,14 @@ path_prefix_schema_version(?T{}=T) -> path_prefix(?T{path=Path}=T, <>) -> T?T{path = [Prefix | Path]}. --spec interleave([A], A) -> +-spec list_interleave([A], A) -> [A]. -interleave([], _) -> +list_interleave([], _) -> []; -interleave([X], _) -> +list_interleave([X], _) -> [X]; -interleave([X|Xs], Sep) -> - [X, Sep | interleave(Xs, Sep)]. +list_interleave([X|Xs], Sep) -> + [X, Sep | list_interleave(Xs, Sep)]. -spec timestamp_to_integer(erlang:timestamp()) -> non_neg_integer().