Method in text · Searchable coil-stdlib

Searchable::split_once

fn split_once<P: Pattern>(T hay, P pat) -> Option<(string, string)>
Import
use text::{Searchable};
Source: src/text.hy

Splits hay at the first match of pat into the parts before and after it.

Parameters#

NameType
hayT
patP

Returns#

Option<(string, string)>

See also#

↑ ↓ navigate ↵ open