Skip to content

Latest commit

 

History

History
140 lines (81 loc) · 3.19 KB

File metadata and controls

140 lines (81 loc) · 3.19 KB

Module buclists

Function Index

delete_if/2
keyfind/3Equivalent to keyfind(Key, N, TupleList, false).
keyfind/4
keyfind/5
keyufind/3Equivalent to keyufind(Key, N, TupleList, false).
keyufind/4
keyupdate/4
merge_keylists/3 Merge the two keylists.
nsplit/2 Split the given list in N lists.
pipemap/2
splitn/2 Split the given list in multiples lists of maximum N elements.

Function Details

delete_if/2

delete_if(Fun, List) -> any()

keyfind/3


keyfind(Key::term(), N::integer(), TupleList::[tuple()]) -> term()

Equivalent to keyfind(Key, N, TupleList, false).

keyfind/4


keyfind(Key::term(), N::integer(), TupleList::[tuple()], Default::term()) -> term()

keyfind/5

keyfind(Key, N, TupleList, M, Default) -> any()

keyufind/3


keyufind(Key::term(), N::integer(), TupleList::[tuple()]) -> term()

Equivalent to keyufind(Key, N, TupleList, false).

keyufind/4


keyufind(Key::term(), N::integer(), TupleList::[tuple()], Default::term()) -> term()

keyupdate/4

keyupdate(Key, N, List, Tuple) -> any()

merge_keylists/3

merge_keylists(N, Rest, TupleList2) -> any()

Merge the two keylists.

Example:


  Args = [{a, 1}, {b, 2}],
  Default = [{b, 3}, {c, 4}],
  elists:merge_keylists(1, Args, Default),
    #=> [{c, 4}, {a, 1}, {b, 2}]

nsplit/2

nsplit(List, N) -> any()

Split the given list in N lists

Example:


 buclists:nsplit([a,b,c,d,e,f,g], 3).
   #=> [[a,b],[c,d],[e,f,g]]

pipemap/2


pipemap(Funs::list(), List::list()) -> list()

splitn/2

splitn(List, N) -> any()

Split the given list in multiples lists of maximum N elements.

Example:


 buclists:splitn([a,b,c,d,e,f,g], 3).
   #=> [[a,b,c],[d,e,f],[g]]