fugazi-io / webclient

web based terminal application for executing local and remote commands
http://fugazi.io
28 stars 12 forks source link

collections "arithmetics" commands #14

Open nitzantomer opened 7 years ago

nitzantomer commented 7 years ago

Examples: list:

[1, 2, 3] + [4, 5]
// is
[1, 2, 3, 4, 5]

[1, 2, 3] - [2, 4]
// is
[1, 3]

map:

{ str: string } + { num: 4 }
// is
{ str: string, num: 4 }
// but
{ str: string, num: 5 } + { num: 4 }
// is
{ str: string, num: 5 }
// so:
{ str: string, num: 5 } ++ { num: 4 }
// is
{ str: string, num: 4 }

{ str: string, num: 5 } - [num]
// is
{ str: string }