Created
November 13, 2018 17:54
-
-
Save avchugaev/75d361cea3516c68c71c118582ab6c3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ReadOnlyList, ArrayList} from '@monument/core'; | |
const vegetables: ReadOnlyList<string> = new ArrayList(['potato', 'tomato', 'cucumber']); | |
vegetables.getAt(0); // "potato" | |
vegetables.indexOf('cucumber'); // 2 | |
vegetables.contains('cucumber'); // true | |
vegetables.containsAll(['cucumber', 'tomato']); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment