Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using std := cpp("WideLibrary/test.h").std;
- Main() {
- vec := std.vector!(int8)();
- fun := sample();
- fun.y = true;
- vec.push_back(5);
- vec.push_back(6);
- std.sort(vec.begin(), vec.end(), fun.choice);
- }
- type sample {
- y := bool();
- choice(int8 lhs, int8 rhs) {
- std.cout << y;
- return y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement