Function ketos::function::first [] [src]

pub fn first(v: &Value) -> Result<Value, Error>

Returns the first element of a list or string.

Returns an error in case of an empty list or string.