Packages

A library for working with lazy lists in Gleam

Current section

Files

Jump to
gleam_zlists gen src gleam_zlists@interface.erl
Raw

gen/src/gleam_zlists@interface.erl

-module(gleam_zlists@interface).
-compile(no_auto_import).
-export([new_1/2, new_2/2, generate/2, recurrent_2/2, recurrent_3/3, foreach/2, foldl/3, map/2, seq/3, dropwhile/2, drop/2, takewhile/2, take/2, filter/2, expand/1, append/1, scroll/2, merge/2, splitwith/2, cartesian/2, zip/2, ziph/2, unique_1/1, unique_2/2, count/1, print/1]).
-spec new_1(list(DB), fun(() -> list(DB))) -> gleam_zlists@interop:z_list(DB).
new_1(Ls, F) ->
gleam_zlists@interop:new_1(Ls, F).
-spec new_2(
gleam_zlists@interop:z_list(DF),
fun(() -> gleam_zlists@interop:z_list(DF))
) -> gleam_zlists@interop:z_list(DF).
new_2(Ls, F) ->
gleam_zlists@interop:new_2(Ls, F).
-spec generate(
gleam_zlists@interop:z_list(DJ),
fun((DJ) -> gleam_zlists@interop:z_list(DL))
) -> gleam_zlists@interop:z_list(DL).
generate(Zl, F) ->
gleam_zlists@interop:generate(Zl, F).
-spec recurrent_2(DO, fun((DO) -> DO)) -> gleam_zlists@interop:z_list(DO).
recurrent_2(Elem, F) ->
gleam_zlists@interop:recurrent_2(Elem, F).
-spec recurrent_3(DQ, DR, fun((DQ, DR) -> {DQ, DR})) -> gleam_zlists@interop:z_list(DQ).
recurrent_3(Elem, Elem_1, F) ->
gleam_zlists@interop:recurrent_3(Elem, Elem_1, F).
-spec foreach(fun((DT) -> any()), gleam_zlists@interop:z_list(DT)) -> nil.
foreach(F, Zl) ->
gleam_zlists@interop:foreach(F, Zl).
-spec foldl(fun((DW, DX) -> DX), DX, gleam_zlists@interop:z_list(DW)) -> DX.
foldl(F, Accum, Zl) ->
gleam_zlists@interop:foldl(F, Accum, Zl).
-spec map(fun((DZ) -> EA), gleam_zlists@interop:z_list(DZ)) -> gleam_zlists@interop:z_list(EA).
map(F, Zl) ->
gleam_zlists@interop:map(F, Zl).
-spec seq(integer(), integer(), integer()) -> gleam_zlists@interop:z_list(integer()).
seq(From, To, Incr) ->
gleam_zlists@interop:seq(From, To, Incr).
-spec dropwhile(fun((EE) -> boolean()), gleam_zlists@interop:z_list(EE)) -> gleam_zlists@interop:z_list(EE).
dropwhile(Pred, Zl) ->
gleam_zlists@interop:dropwhile(Pred, Zl).
-spec drop(integer(), gleam_zlists@interop:z_list(EH)) -> gleam_zlists@interop:z_list(EH).
drop(N, Zl) ->
gleam_zlists@interop:drop(N, Zl).
-spec takewhile(fun((EK) -> boolean()), gleam_zlists@interop:z_list(EK)) -> gleam_zlists@interop:z_list(EK).
takewhile(Pred, Zl) ->
gleam_zlists@interop:takewhile(Pred, Zl).
-spec take(integer(), gleam_zlists@interop:z_list(EN)) -> gleam_zlists@interop:z_list(EN).
take(N, Zl) ->
gleam_zlists@interop:take(N, Zl).
-spec filter(fun((EQ) -> boolean()), gleam_zlists@interop:z_list(EQ)) -> gleam_zlists@interop:z_list(EQ).
filter(Pred, Zl) ->
gleam_zlists@interop:filter(Pred, Zl).
-spec expand(gleam_zlists@interop:z_list(ET)) -> list(ET).
expand(Zl) ->
gleam_zlists@interop:expand(Zl).
-spec append(gleam_zlists@interop:z_list(gleam_zlists@interop:z_list(EW))) -> gleam_zlists@interop:z_list(EW).
append(Zlsts) ->
gleam_zlists@interop:append(Zlsts).
-spec scroll(integer(), gleam_zlists@interop:z_list(FA)) -> {list(FA),
gleam_zlists@interop:z_list(FA)}.
scroll(N, Zl) ->
gleam_zlists@interop:scroll(N, Zl).
-spec merge(gleam_zlists@interop:z_list(FE), gleam_zlists@interop:z_list(FE)) -> gleam_zlists@interop:z_list(FE).
merge(Zl_1, Zl_2) ->
gleam_zlists@interop:merge(Zl_1, Zl_2).
-spec splitwith(fun((FI) -> boolean()), gleam_zlists@interop:z_list(FI)) -> {list(FI),
gleam_zlists@interop:z_list(FI)}.
splitwith(Pred, Zl) ->
gleam_zlists@interop:splitwith(Pred, Zl).
-spec cartesian(
gleam_zlists@interop:z_list(FM),
gleam_zlists@interop:z_list(FM)
) -> gleam_zlists@interop:z_list(FM).
cartesian(Zl_1, Zl_2) ->
gleam_zlists@interop:cartesian(Zl_1, Zl_2).
-spec zip(gleam_zlists@interop:z_list(FQ), gleam_zlists@interop:z_list(FS)) -> gleam_zlists@interop:z_list({FQ,
FS}).
zip(Zl_1, Zl_2) ->
gleam_zlists@interop:zip(Zl_1, Zl_2).
-spec ziph(gleam_zlists@interop:z_list(FV), gleam_zlists@interop:z_list(FX)) -> gleam_zlists@interop:z_list({FV,
FX}).
ziph(Zl_1, Zl_2) ->
gleam_zlists@interop:ziph(Zl_1, Zl_2).
-spec unique_1(gleam_zlists@interop:z_list(GA)) -> gleam_zlists@interop:z_list(GA).
unique_1(Zl) ->
gleam_zlists@interop:unique_1(Zl).
-spec unique_2(fun((GD, GD) -> boolean()), gleam_zlists@interop:z_list(GD)) -> gleam_zlists@interop:z_list(GD).
unique_2(Pred, Zl) ->
gleam_zlists@interop:unique_2(Pred, Zl).
-spec count(gleam_zlists@interop:z_list(any())) -> integer().
count(Zl) ->
gleam_zlists@interop:count(Zl).
-spec print(gleam_zlists@interop:z_list(any())) -> nil.
print(Zl) ->
gleam_zlists@interop:print(Zl).