Pipeline = fun(Functions, Initial) ->
lists:foldl(
fun(Function, Acc) ->
Function(Acc)
end,
Initial,
Functions
),
Initial = SomeFunc(),
Pipeline = [Func0, Func1, Func2, Func3],
Result = Pipeline(Pipeline, Initial).
At a certain point I grew to not mind the punctuations `; , .`
Been standing on the sholders of much of this for a while now from prototyping in livebook and for various ML/LLM backed prod projects with things like self hosting embedding models (thanks to NX + bumblebee + OS Models from ) and using meta fais for vector storage neatly via elixirs solid native bindings story, to generally elixir being great for streaming output from LLMs or building more complex agents on top of them using the process model / OTP.