The leading item of list y.

```   {. 'abc'
a```

### Common uses

Convert a single-item list y into an atom

• {. may appear equivalent to 1&{. but in fact returns a different-shaped value.

```   ] list1=: 1{.'abc'
a
assert list1 -: (,'a')
] atom=: {. list1
a
assert atom -: 'a'
NB. But...
assert list1 -: atom
|assertion failure: assert
|       assert list1-:atom```

## x {. y (Take)

The leading x items of list y.

• ...the trailing x items, if x is negative.

```   2 {. 'abcde'
ab
_2 {. 'abcde'
de

] z=: i.3 4
0 1  2  3
4 5  6  7
8 9 10 11
2 {. z     NB. The items of a 2-mx are the rows
0 1 2 3
4 5 6 7
2 3 {. z   NB. But x can apply to separate dimensions
0 1 2
4 5 6```

### Common uses

1. Slice-and-dice an array (see above).

2. (With Drop }.) Chop out an interval from a list

• C/f MID\$ in BASIC

```   az=: 'abcdefghijklmnopqrstuvwxyz'
3 {. 5 }. az
fgh```

3. (With Drop }.) Split a list into head and beheaded list

```   split   NB. defined in stdlib
{. ,&< }.
lst=: 'abcde'
2 split lst
+--+---+
|ab|cde|
+--+---+
'hd lst'=: split lst
hd ; lst
+-+----+
|a|bcde|
+-+----+```