mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Add base piping for list.Replace
This commit is contained in:
parent
279652a5af
commit
ba2e8cd32b
14 changed files with 315 additions and 16 deletions
|
@ -28,6 +28,7 @@ pub enum LowLevel {
|
|||
ListSet,
|
||||
ListSingle,
|
||||
ListRepeat,
|
||||
ListReplace,
|
||||
ListReverse,
|
||||
ListConcat,
|
||||
ListContains,
|
||||
|
@ -229,6 +230,7 @@ impl LowLevelWrapperType {
|
|||
Symbol::LIST_LEN => CanBeReplacedBy(ListLen),
|
||||
Symbol::LIST_GET => WrapperIsRequired,
|
||||
Symbol::LIST_SET => WrapperIsRequired,
|
||||
Symbol::LIST_REPLACE => WrapperIsRequired,
|
||||
Symbol::LIST_SINGLE => CanBeReplacedBy(ListSingle),
|
||||
Symbol::LIST_REPEAT => CanBeReplacedBy(ListRepeat),
|
||||
Symbol::LIST_REVERSE => CanBeReplacedBy(ListReverse),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue