Assign to the variable x the last element of the list items.
x := items[len(items)-1]
X := Items'Last
int length = sizeof(items) / sizeof(items[0]); int x = items[length - 1];
(def x (peek items))
(def x (last items))
#include <iterator>
auto x = *std::crbegin(items);
#include<vector>
std::vector<int> items; int last = items.back();
using System.Linq;
var x = items.LastOrDefault();
var x = items[^1];
var x = items[items.Count-1];
int[42] items; int x = items[$-1];
import std.range;
int[] items; auto x = items.back();
x = items.last;
x = List.last(items)
x = lists:last(items),
x = items(ubound(items,1))
def x = items.last()
x = last items
foo :: [a] -> Maybe a foo [] = Nothing foo xs = Just $ last xs x = foo items
const x = items.at(-1);
const x = items[items.length - 1];
T x = items.getLast();
int x = items[items.length - 1];
var x = items.last()
(setf x (car (last items)))
local x = items[#items]
@import Foundation;
x=items.lastObject;
$x = $items[array_key_last($items)];
$x = end($items);
x := items[high(items)];
my $x = $items[$#items];
my $x = $items[-1];
x = items[-1]
x = items.last
let x = items[items.len()-1];
let x = items.last().unwrap();
val x = items.last
(define items (list 1 2 3 4)) (define x (last items))
x := items last.
Dim x = items(items.Count - 1)
No security, no password. Other people might choose the same nickname.