letIt
const data: Array<number> | null = await idsFromFile();
const str = data?.letIt(it => convertToString(it)) ?? "empty";const numbers = mutableListOf<string>("one", "two", "three");
const firstAndLast = withIt(numbers, function () {
return `The first element is ${this.first()}, the last element is ${this.last()}`
});
console.debug(firstAndLast);Last updated