Skip to content

Instantly share code, notes, and snippets.

@avchugaev
Created November 13, 2018 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avchugaev/75d361cea3516c68c71c118582ab6c3a to your computer and use it in GitHub Desktop.
Save avchugaev/75d361cea3516c68c71c118582ab6c3a to your computer and use it in GitHub Desktop.
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