Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val MyStringList = ["hello", "world"] as string[];
- if (MyStringList has "hello") {
- print("Success!");
- }
- function doesItHaveWorld() as bool {
- if (MyStringList has "world") {
- print("World found!");
- return true;
- }
- return false;
- }
- doesItHaveWorld();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement