Skip to main content

chunk

Function chunk 

Source
pub fn chunk(
    value: &Value,
    by: Option<&str>,
    size: usize,
    overlap: usize,
) -> Result<Value, String>
Expand description

chunk: split text by chars|lines|tokens (approximate) or an array into slices of size, with overlap elements/chars carried over.