Current section

Files

Jump to
cake src cake@stdlib@iox.erl
Raw

src/cake@stdlib@iox.erl

-module(cake@stdlib@iox).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([dbg/1, inspect/1, dbg_label/2, print_dashes/0, print_dashes_tap/1, println/1, print/1, print_tap/2]).
-spec dbg(OEK) -> OEK.
dbg(V) ->
_pipe = V,
pprint:debug(_pipe),
V.
-spec inspect(any()) -> binary().
inspect(V) ->
_pipe = V,
gleam@string:inspect(_pipe).
-spec dbg_label(OEM, binary()) -> OEM.
dbg_label(V, Label) ->
_pipe = {Label, V},
pprint:debug(_pipe),
V.
-spec print_dashes() -> nil.
print_dashes() ->
_pipe = <<"─"/utf8>>,
_pipe@1 = gleam@string:repeat(_pipe, 80),
gleam@io:println(_pipe@1).
-spec print_dashes_tap(OEN) -> OEN.
print_dashes_tap(V) ->
print_dashes(),
V.
-spec println(binary()) -> nil.
println(S) ->
_pipe = S,
gleam@io:println(_pipe).
-spec print(binary()) -> nil.
print(S) ->
_pipe = S,
gleam@io:print(_pipe).
-spec print_tap(OEO, binary()) -> OEO.
print_tap(V, S) ->
_pipe = S,
gleam@io:print(_pipe),
V.