Skip to content

Snips to merge objects in different languages #74#76

Open
VaradJadhav wants to merge 1 commit intorahulrk-dev:mainfrom
VaradJadhav:snips-merge-objects
Open

Snips to merge objects in different languages #74#76
VaradJadhav wants to merge 1 commit intorahulrk-dev:mainfrom
VaradJadhav:snips-merge-objects

Conversation

@VaradJadhav
Copy link
Contributor

Added snips to merge objects in python, java and cpp.


### Python
```python
def merge(*args):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible in python to use similar object structure as shown in example above?
I'm not sure, but correct me if I'm wrong

### CPP
```cpp
using Value = variant<int, string, vector<int>>;
using Dictionary = map<string, Value>;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if you can do it without any external dependancy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants