Groups
Groups
Sign in
Groups
Groups
elixir-lang-core
Conversations
About
Send feedback
Help
[Proposal] `List.replace_at/3` receiving function?
46 views
Skip to first unread message
thojan...@gmail.com
unread,
Nov 16, 2020, 1:28:23 PM
11/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixir-lang-core
What do you think about this :
```
List.replace_at(my_list, 1, &(&1 + 1))
```
Instead of
```
List.replace_at(my_list, 1, Enum.at(my_list, 1) + 1)
```
José Valim
unread,
Nov 16, 2020, 1:32:18 PM
11/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixir-l...@googlegroups.com
See List.update_at.
Reply all
Reply to author
Forward
0 new messages