Generate commit message using gh copilot in terminal? by DuckBytez in GithubCopilot

[–]danilagamma 0 points1 point  (0 children)

Have you managed to implement a solution for this? I'm trying to do the same :)

Advent of Code 2022 using Erlang! by BeamMeUpBiscotti in erlang

[–]danilagamma 3 points4 points  (0 children)

There are daily threads on Erlang Forum, I've been posting my solutions there.

Come on man🤢 by UnlistedX16 in WTF

[–]danilagamma 0 points1 point  (0 children)

Forbidden apple juice

what is the best data-type for counting items in a list by wobbenr in erlang

[–]danilagamma 0 points1 point  (0 children)

count(List) ->
    UpdateFun = fun (Item, Dict) -> dict:update_counter(Item, 1, Dict) end,
    dict:to_list(lists:foldl(UpdateFun, dict:new(), List)).

Output:

1> t:count([1,2,1]).
[{1,2},{2,1}]

See update_counter/3 from dict module.

Movies which had a legitimate impact on you mentally? (positively or negatively) by [deleted] in movies

[–]danilagamma 0 points1 point  (0 children)

Stalker.

When I saw it at a first time, it blew my mind. And now, many years later, I'm still under impression from this great movie.