mudasobwa
Creator of Cure
Elixir Blog Post: Dynamic Nested Function Call with Macro
Blogged on how to build a nested dynamic function call like
foo(:bar, fn arg1 ->
foo(:baz, fn arg2 ->
...
foo(:bzz, fn argN ->
{arg1, arg2, ..., argN}
end)
...
end)
end)
when the nesting level is not known upfront. That might be helpful for dynamic generation of deeply bound StreamData with StreamData.bind/2.
Posted via Devtalk (see this thread for details).
Popular in Blog Posts
I’m closing out, for now, my series on questions at the heart of development with an analysis of when we need more abstraction. For exam...
New
You are storing some Phoenix LiveView state in the browser. You want to retrieve that saved state as early as possible to improve the use...
New
Wrote some rant on Business Process Driven Development with Finite Automata (and Finitomata library in particular.)
New
I talk about how I really like to use runtime configuration and discuss some common pitfalls of configuration in Elixir.
New
I love LiveView. Navigating between views is so fast! This quick tip makes navigating feel instantaneous by adding a split-second delay b...
New
Building on other people’s work I bashed things together and suddenly I can know when someone is speaking using Elixir and Membrane.
New
A little halloween hocus-pocus on the value proposition of having a reliable test suite in place.
You are not scared, are you?
New
Monaco is state-of-the-art browser-based code editor that powers VS Code. Let’s see how to integrate it with Phoenix LiveView using esbuild.
New
It seems unlikely that anyone will find these facts interesting or useful, but here they are anyway.
New
There are 3 main formatters for Erlang which you can use from the command-line,
rebar3_format,
Steamroller
elmfmt.
Visual Studio Cod...
New
Other popular topics
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New







