<commit_before>---
navhome: /docs
sort: 1
---

# `:like  ^+  "ketlus"`

`{$like p/seed q/seed}`: typecast by example (seed).

## Produces

The value of `p` with the span of `q`, if the span of `p` nests
within the span of `q`.  Otherwise, `nest-fail`.

## Syntax

Regular: *2-fixed*.

## Examples

```
~zod:dojo> :like('text' %a)
'a'
```

```
~zod:dojo> ^+('text' %a)
'a'
```<commit_msg>Inverted p and q.<commit_after>---
navhome: /docs
sort: 1
---

# `:like  ^+  "ketlus"`

`{$like p/seed q/seed}`: typecast by example (seed).

## Produces

The value of `q` with the span of `p`, if the span of `q` nests
within the span of `p`.  Otherwise, `nest-fail`.

## Syntax

Regular: *2-fixed*.

## Examples

```
~zod:dojo> :like('text' %a)
'a'
```

```
~zod:dojo> ^+('text' %a)
'a'
```
{'fraction_non_alphanumeric': 0.2377892030848329, 'fraction_numerical': 0.005141388174807198, 'mean_word_length': 3.4514285714285715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2473352', 'n_tokens_mistral': 359, 'n_tokens_neox': 338, 'n_words': 101}