# `writeKeyValueListBlock`

*Function*

## Declaration

```swift
func writeKeyValueListBlock(_ file: UnsafeMutablePointer<FILE>, _ key: UnsafePointer<CChar>, _ values: [Any], _ format: GSFormatVersion, _ block: @escaping ListBlock_t) -> Bool
```

```objc
BOOL writeKeyValueListBlock(FILE *file, const char *key, NSArray *values, GSFormatVersion format, ListBlock_t block);
```

```python
writeKeyValueListBlock(file: FILE, key: str, values: list, format: GSFormatVersion, block: ListBlock_t) -> bool
```

## See Also

### Values and Collections

- [`writePosition`](/Core/GlyphsCore/writePosition)
- [`writeTuple2`](/Core/GlyphsCore/writeTuple2)
- [`writeTuple2Buffer`](/Core/GlyphsCore/writeTuple2Buffer)
- [`writeTuple2Format1`](/Core/GlyphsCore/writeTuple2Format1)
- [`writeColor`](/Core/GlyphsCore/writeColor)
- [`writeTransform`](/Core/GlyphsCore/writeTransform)
- [`writeTransformToBuffer`](/Core/GlyphsCore/writeTransformToBuffer)
- [`writeDateString`](/Core/GlyphsCore/writeDateString)
- [`writeElements`](/Core/GlyphsCore/writeElements)
- [`writeElementsLine`](/Core/GlyphsCore/writeElementsLine)
- [`endArray`](/Core/GlyphsCore/endArray)

