~/bend-docscommunity

src/head.bend checks

raw source on the hub · import bend-toon-codec@0.1.0.0/src/head.bend as Head

1 import
import Base

Definitions

def lead source · line 7 · raw

@+s:String -> @+c:U32 -> Bool

Is the first character the code point c?

def drop source · line 15 · raw

@+s:String -> String

Without the first character.

def lead2 source · line 23 · raw

@+s:String -> @+a:U32 -> @+b:U32 -> Bool

Are the first two characters a then b?

def at_least source · line 27 · raw

@+s:String -> @+n:Nat -> Bool

Has the string at least n characters?

def mark source · line 42 · raw

String

def marked source · line 45 · raw

@+k:String -> Bool

def unmark.pick source · line 48 · raw

@+m:Bool -> @+k:String -> String

def unmark source · line 56 · raw

@+k:String -> String

The key without its marker.

def keq source · line 60 · raw

@+a:String -> @+b:String -> Bool

Same key, ignoring markers.