| summaryrefslogtreecommitdiff |
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2020-09-15 16:22:28 +0200 |
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2020-09-15 16:22:28 +0200 |
| commit | a7356491e534e048374fdf53a534c9ea2034defd (patch) | |
| tree | f8c5dd5cf1dd2e737c3cc027e38ec3e83e90728a /data | |
| parent | d4eb4ff9a013c870936b7546a65bdfd048c60133 (diff) | |
Fully implements remove_{one,all,at}.
Diffstat (limited to 'data')
| -rw-r--r-- | data/tests/extra_functionals.fate | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/data/tests/extra_functionals.fate b/data/tests/extra_functionals.fate index bc629cb..cdbebb3 100644 --- a/data/tests/extra_functionals.fate +++ b/data/tests/extra_functionals.fate @@ -55,4 +55,18 @@ (set int_list_b (shuffle int_list_a)) (shuffle! int_list_c) +(set int_list_c (var int_list_a)) +(remove_one! 6 int_list_a) + +(= (var int_list_a) (remove_one 6 int_list_c)) + +(set int_list_b (var int_list_a)) +(remove_all! 3 int_list_a) + +(= (var int_list_a) (remove_all 3 int_list_b)) + +(set int_list_c (var int_list_a)) +(remove_at! 4 int_list_a) +(= (var int_list_a) (remove_at 4 int_list_c)) + (end) |


