combining arrays

combining arrays - Poruke

#1 Objavljeno: 11. 1. 2022. 11:21:07
1986max

1986max

0 svidjanja u 9 postova.

Grupa: User

Tell me please.

Question - 1

There are several arrays. a=[1;2...4], b=[7;8..10], c=[12;13...15]

How do I combine them so that it turns out as follows - d=[1,2,3,4,7,8,9,10,12,13,14,15]

Question - 2

There is an array a=[1;2...10], I need to exclude several values from it so that it turns out as follows a=[1,2,5,6,7,9,10]

q-1-2.sm (3,71 KiB) preuzeto 1285 put(ova).
#2 Objavljeno: 11. 1. 2022. 13:12:55
sergio

sergio

127 svidjanja u 342 postova.

Grupa: User

One way (stack use)

q-1-2_ser.sm (6,18 KiB) preuzeto 1347 put(ova).
sergio
1 korisnika je svidelo ovu objavu
Andrey Ivashov 11. 1. 2022. 15:23:00
#3 Objavljeno: 11. 1. 2022. 13:51:29
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Question - 2


Make it algo style, add/remove cols.
This way you will have in-situ as desired.
Welcome to Smath Community ... Jean.

AlgoSelect.PNG
#4 Objavljeno: 12. 1. 2022. 03:58:49
1986max

1986max

0 svidjanja u 9 postova.

Grupa: User

thank a lot, all options are excellent!)
#5 Objavljeno: 12. 1. 2022. 10:26:33
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Thank a lot, all options are excellent !


Appreciated ... more in there ... Jean.

Utilities Matrix Extractors.sm (56,76 KiB) preuzeto 1293 put(ova).
1 korisnika je svidelo ovu objavu
sergio 12. 1. 2022. 11:17:00
#6 Objavljeno: 14. 1. 2022. 15:06:20
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

In addition to sergio's answer, you can use an custom exclude function.
It will remove substances of a L# list from master M# list.

Regards

exclude.sm (5,92 KiB) preuzeto 1235 put(ova).

2022-01-14_21-02.png
  • Novi postovi
  • Nema novih postova