# Add Prefix: `prefix`

> Prefix a string to every item in a list

## Description

Takes a list from stdin and returns that same list with each element prefixed.

## Usage

```
<stdin> -> prefix str -> <stdout>
```

## Examples

```
» ja [Monday..Wednesday] -> prefix foobar
[
    "foobarMonday",
    "foobarTuesday",
    "foobarWednesday"
]
```

## Detail

Supported data types can queried via `runtime`

```
runtime --marshallers
runtime --unmarshallers
```

## Synonyms

* `prefix`
* `list.prefix`


## See Also

* [Add Suffix: `suffix`](../commands/suffix.md):
  Prefix a string to every item in a list
* [Count: `count`](../commands/count.md):
  Count items in a map, list or array
* [Create JSON Array: `ja`](../commands/ja.md):
  A sophisticated yet simply way to build a JSON array
* [Create Streamable Array: `a`](../commands/a.md):
  A sophisticated yet simple way to stream an array or list (mkarray)
* [Left Sub-String: `left`](../commands/left.md):
  Left substring every item in a list
* [Right Sub-String: `right`](../commands/right.md):
  Right substring every item in a list
* [Shell Runtime: `runtime`](../commands/runtime.md):
  Returns runtime information on the internal state of Murex
* [`lang.MarshalData()` (system API)](../apis/lang.MarshalData.md):
  Converts structured memory into a Murex data-type (eg for stdio)
* [`lang.UnmarshalData()` (system API)](../apis/lang.UnmarshalData.md):
  Converts a Murex data-type into structured memory

<hr/>

This document was generated from [builtins/core/lists/push_pop_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/lists/push_pop_doc.yaml).