~/bend-docscommunity

frame.bend checks

raw source on the hub · import cswap-bend-cli@0.1.0.0/frame.bend as Frame

1 import
import Base

Types

type Cut source · line 7 · raw

Data

Definitions

def nl.pick source · line 10 · raw

@hit:Bool -> @n:Nat -> @rest:Maybe<&2, Nat> -> Maybe<&2, Nat>

def nl.find source · line 18 · raw

@s:String -> @+n:Nat -> Maybe<&2, Nat>

Index of the first LF.

def blank.find source · line 28 · raw

@s:String -> @+n:Nat -> @+prev:Bool -> Maybe<&2, Nat>

Index of the LF that ends a blank line: an LF whose previous line break was an LF too (CR before either is ignored). prev: the last significant character was an LF (true at the start, so leading blank lines are cut).

def cut.at source · line 35 · raw

@m:Maybe<&2, Nat> -> @+s:String -> Maybe<&2, Cut>

def take source · line 44 · raw

@block:Bool -> @+buf:String -> Maybe<&2, Cut>

The first message of buf (json: a line; block: up to a blank line) and the rest, none while the message is incomplete.

def blank source · line 52 · raw

@+s:String -> Bool

Is there anything but white space?