definy.text-line-end
- description
- The index of the next newline (or the end) from index
- type
Fn(source: Record{text: String, bytes: List<Number>}, index: Number) -> Number- expression
fn(source$0, index$1) => let byte$2 = @definy.text-byte-at(source: $0, index: $1); match @core.or(left: @core.equal(left: $2, right: 10), right: @core.less-than(left: $2, right: 0)) { true => $1, false => @definy.text-line-end(source: $0, index: @core.plus(left: $1, right: 1)) }
- visibility
- public
definy.text-line-end (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: fLqDSkzlyirGAKrq41lWJe8gplRNc4kMBnBCgY9G8e8 content hash: JzfnodKh09Vh_3iey7zrqFjwecniqqPUmN4OVQucFqw