Function ketos::function::init [] [src]

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

Returns all but the last element of a list or string.

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