MeerKatDev

MeerKatDev

many times we do stuff like (e.g. test setups, json views in phoenix)

aaa = ...
bbb = ...
ccc = ...
%{aaa: aaa, bbb: bbb, ccc: ccc}

and would be cool to have a standard macro doing the same with

compact(aaa, bbb, ccc) # eventually compact_map / compact_keyword

Link to PHP compact method

I’m sorry if this is a duplicate, couldn’t find this in the forum.

Showing Posts 1 to 3

cmo

cmo

Yeah, it has come up previously and IIRC had mixed feedback.

There are libraries like shorter_maps, tiny_maps and others.

MeerKatDev

MeerKatDev OP

any way I could see the discussion? I’m curious

— All posts loaded —

Where Next? Top

Trending in Proposals: Ideas Top

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
aseigo
ICal is a library for interacting with iCalendar data. It parses iCalendars into typed Elixir structs via ICal.from_ics, and can prepare ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews