Evgeny M.
Evgeny M.
Example ```erlang test(Map, ListOfMaps) -> #{sort := Key} = Map, lists:sort( fun(#{Key := A}, #{Key := B}) -> A =< B end, ListOfMaps ). ``` All three instances of the...
```erlang -include_lib("stdlib/include/ms_transform.hrl"). test() -> ets:fun2ms(fun(X) -> element(3, object()) end). ``` Intellij highlights `object()` as an undefined function. Actually it is a pseudofunction which is uderstood by the `ms` parse transform...
To reproduce, create a simple app with `rebar3 new app testapp`, create `include` directory, put a hrl file with a simple define there and include this file into any of...
At the moment `case`, `if` and some other operators formatted as ``` SomeLongVar = case Y of Z -> ... end. ``` but funs are formatted as ``` SomeLongVar =...
'Export function' action for functions with macros as name does not work properly. It adds apostrophes to the exported name. for example `?test(A) -> ok.` [Export function] `-export(['?test'/1]).` Another similar...
Postgresql The following code never succeeds unless there's a 'counters' table in the database: ``` erlang F = fun() -> %% some other things that will allways be rolled back...
Example of the profile: ``` erlang {profiles, [ {prod, [{relx, [ {mode, prod}, {include_erts, "/path/to/erlang/26.2.1/"}, {sys_config, "./config/prod.config"} ]}] }, {dev, [{relx, [{dev_mode, true}, {extended_start_script, true}, {sys_config, "./config/dev.config"} ]}] } ]...
`rebar3 auto` crashes on second change with ```=ERROR REPORT==== 14-Nov-2023::19:23:25.870893 === beam/beam_load.c(148): Error loading module enotify: please re-compile this module with an Erlang/OTP 26 compiler or update your Erlang/OTP version...
**Feature description** It is tiresome to write constraint names by hand such as table1_table2_field1_field2_fkey. Such names can be autogenerated, either by leaving the field Name empty or by clicking the...
Assuming you have the `cube` extension enabled and one of columns is of type `public.cube` The column contains something like this `(0.133415370649242, -0.00469171508690486, 0.00978746971235784)` If we query the table epgsql...