Closed nelsonic closed 1 year ago
As outlined in https://github.com/dwyl/mvp/issues/420 we already have a simple way to add an item to a list: https://github.com/dwyl/mvp/blob/b8aee0e3c29d0cb45025595131248c08fbbf6a31/lib/app/list.ex#L149-L154
add
item
list
need a way of removing an item from the list so that we can easily move the item to a different list.
remove_item_from_list/3
/book
Quick side-quest: https://github.com/dwyl/useful/issues/55
https://hexdocs.pm/useful/1.13.1/Useful.html#remove_item_from_list/2 ๐ฆ :shipit:
Easy: https://github.com/dwyl/mvp/blob/f212cd541ed21d294e1f8171bc966a6d716bfd56/lib/app/list.ex#L188-L198
Documented in: mvp/19-add-item-to-list.md#remove-item-from-list
Published at: https://dwyl.github.io/book/mvp/19-add-item-to-list.html
Included in https://github.com/dwyl/mvp/pull/165 :shipit:
As outlined in https://github.com/dwyl/mvp/issues/420 we already have a simple way to
add
anitem
to alist
: https://github.com/dwyl/mvp/blob/b8aee0e3c29d0cb45025595131248c08fbbf6a31/lib/app/list.ex#L149-L154need a way of removing an
item
from thelist
so that we can easily move theitem
to a differentlist
.Todo
remove_item_from_list/3
๐งชremove_item_from_list/3
function to pass tests ๐งโ๐ป/book
๐