Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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