API リファレンス
lp9 api が書いた一覧です。組み込みのクラスは、コンパイラが送信の型を決めるのに読み、ランタイムが送信を実行するのに読む一つの表から作られています。なので、ここにあるものが言語の答えるものです。LP-9 で書かれた標準ライブラリは、LP-9 自身の構文解析で読んでいます。
型は表の書き方のままです。self は受け手自身の型、elem は Array・Maybe・Future の要素の型、key と val は Dict のキーと値、a と b は何でもよい型です。ライブラリのメソッドに型が書いていないのは、使われた所で推論が付ける型がそのメソッドの型だからです。
Object はすべての受け手、Class は任意のクラス、Instance はプログラムが宣言したクラスのインスタンスです。この三つはプログラムに書けません。
以下は生成されたままの英語です。
Table of contents
Built-in classes
- Actor
- Array
- Base64
- Block
- Bool
- Class
- Clipboard
- DB
- Date
- DateTime
- DbRow
- Decimal
- Dict
- Error
- File
- FileDialog
- FileHandle
- Float
- Future
- Gfx
- Hash
- Hotkey
- Http
- HttpResponse
- Image
- Instance
- Instant
- Int
- Json
- Mariadb
- MariadbConnection
- Maybe
- MsgPack
- OS
- Object
- Paint
- Postgres
- PostgresConnection
- Regex
- RegexMatch
- Rounding
- Sql
- SqlTemplate
- Str
- TCP
- TCPServer
- TCPSocket
- TLS
- TLSSocket
- TimeZone
- Tray
- Window
- Zlib
Standard library
Forms
These are sends the table cannot hold, because what they answer is not decided by the receiver's type and the selector alone. Each is checked where it is written.
C fields: { ... }-- the argument is a record, which is not a valuex copyWith: { ... }-- the same, and it answers the receiver's own classDict from: { ... }-- the same; the record becomes the pairsActor spawn: x-- answers Actor[class of the argument]Actor spawn: x onDomain: n-- the same, on the domain asked for(x : P)-- says which reading is meant: x's class claims protocol P, or x is a PMaybe some: x / Maybe none-- answers Maybe[type of the argument]Paint child: a-- the region an actor draws; answers Paintp on: #click send: M-- M is the class of the message; whoever draws it must have a handler for M, and what the event carries fills M's fieldsp on: #click send: M with: x-- the same, and x fills M's one fieldx tell: msg-- solved against the handler the receiver's class has for msg's classx ask: msg-- the same; answers Future[the handler's reply type]self reply: x-- the answer type belongs to the methodself become: x-- answers the original class, so references stay honestme-- the actor whose turn is running; not even a sendref ! msg-- a message that is a value; answers the referenceme receive: { C -> [ :m | ... ]. ... }-- the argument is a receive table; answers what its blocks answerme receive: { ... } after: ms do: [ ... ]-- the same, and the block runs at the deadlineme receive-- the first value message, of any class
Built-in classes
Actor
Instance methods
Actor >> id->IntActor >> isAlive->BoolActor >> linkTo: Actor[b]->UnitActor >> monitor: Actor[b]->UnitActor >> stop: Str->UnitActor >> trapExits: Bool->Unit
Array
Instance methods
Array >> , self->selfArray >> append: elem->selfArray >> at: Int->elemArray >> at: Int put: elem->selfArray >> collect: Block[elem -> a]->Array[a]Array >> concat: self->selfArray >> copyFrom: Int to: Int->selfArray >> copyWithout: elem->selfArray >> do: Block[elem -> a]->selfArray >> do: Block[elem -> b] separatedBy: Block[ -> b]->selfArray >> first->elemArray >> indexOf: elem->IntArray >> indexOf: elem ifAbsent: Block[ -> Int]->IntArray >> inject: a into: Block[a elem -> a]->aArray >> isEmpty->BoolArray >> last->elemArray >> notEmpty->BoolArray >> reject: Block[elem -> Bool]->selfArray >> reverse->selfArray >> reversed->selfArray >> select: Block[elem -> Bool]->selfArray >> size->IntArray >> sort: Block[elem elem -> Bool]->selfArray >> sorted->selfArray >> withIndexDo: Block[Int elem -> a]->self
Base64
Class methods
Base64 class >> decode: Str->Maybe[Str]Base64 class >> decodeUrl: Str->Maybe[Str]Base64 class >> encode: Str->StrBase64 class >> encodeUrl: Str->Str
Block
Instance methods
Block >> ensure: Block[ -> b]->aBlock >> value->aBlock >> value:->aBlock >> value:value:->aBlock >> value:value:value:->aBlock >> value:value:value:value:->a
Bool
Instance methods
Bool >> and: Block[ -> Bool]->BoolBool >> ifFalse: Block[ -> a]->BoolBool >> ifTrue: Block[ -> a]->BoolBool >> ifTrue: Block[ -> a] ifFalse: Block[ -> a]->aBool >> not->BoolBool >> or: Block[ -> Bool]->Bool
Class
Instance methods
Class >> name->StrClass >> qualifiedName->Str
Clipboard
Class methods
Clipboard class >> image->Maybe[Image]Clipboard class >> image: Image->selfClipboard class >> isPrivate->BoolClipboard class >> text->StrClipboard class >> text: Str->self
DB
Class methods
DB class >> open: Str->DB
Instance methods
DB >> begin->selfDB >> close->selfDB >> commit->selfDB >> exec: Str->IntDB >> exec: Str params: Array[Str] or Array[Maybe[Str]]->IntDB >> exec: Str with: Dict->IntDB >> query: Str->Array[DbRow]DB >> query: Str params: Array[Str] or Array[Maybe[Str]]->Array[DbRow]DB >> query: Str with: Dict->Array[DbRow]DB >> rollback->selfDB >> withTx: Block[self -> a]->a
Date
Class methods
Date class >> parse: Str->DateDate class >> today->DateDate class >> todayIn: TimeZone->DateDate class >> y: Int m: Int d: Int->Date
Instance methods
Date >> < Date->BoolDate >> <= Date->BoolDate >> > Date->BoolDate >> >= Date->BoolDate >> addDays: Int->DateDate >> addMonths: Int->DateDate >> addYears: Int->DateDate >> asDateTime->DateTimeDate >> day->IntDate >> dayOfWeek->IntDate >> dayOfYear->IntDate >> daysSince: Date->IntDate >> endOfMonth->DateDate >> formattedAs: Str->StrDate >> isLeapYear->BoolDate >> isoString->StrDate >> max: Date->DateDate >> min: Date->DateDate >> month->IntDate >> startOfMonth->DateDate >> year->Int
DateTime
Class methods
DateTime class >> fromMs: Int->DateTimeDateTime class >> now->DateTimeDateTime class >> parse: Str->DateTimeDateTime class >> y: Int m: Int d: Int h: Int min: Int s: Int->DateTimeDateTime class >> y: Int m: Int d: Int h: Int min: Int s: Int ms: Int->DateTime
Instance methods
DateTime >> < self->BoolDateTime >> <= self->BoolDateTime >> > self->BoolDateTime >> >= self->BoolDateTime >> asInstantIn: TimeZone->InstantDateTime >> asInstantOffset: Int->InstantDateTime >> asLocalInstant->InstantDateTime >> date->DateDateTime >> day->IntDateTime >> formattedAs: Str->StrDateTime >> hour->IntDateTime >> isoString->StrDateTime >> millisecond->IntDateTime >> minute->IntDateTime >> month->IntDateTime >> second->IntDateTime >> year->Int
DbRow
Instance methods
DbRow >> asDict->DictDbRow >> at: Str->Maybe[Str]DbRow >> at: Str ifAbsent: Block[ -> Maybe[Str]]->Maybe[Str]DbRow >> includesKey: Str->BoolDbRow >> keys->Array[Str]DbRow >> size->IntDbRow >> values->Array[Maybe[Str]]
Decimal
Instance methods
Decimal >> * Decimal->DecimalDecimal >> + Decimal->DecimalDecimal >> - Decimal->DecimalDecimal >> < Decimal->BoolDecimal >> <= Decimal->BoolDecimal >> > Decimal->BoolDecimal >> >= Decimal->BoolDecimal >> abs->DecimalDecimal >> asFloat->FloatDecimal >> asIntegerRounding: Rounding->IntDecimal >> between: Decimal and: Decimal->BoolDecimal >> divide: Decimal scale: Int rounding: Rounding->DecimalDecimal >> grouped->StrDecimal >> groupedTo: Int->StrDecimal >> isZero->BoolDecimal >> max: Decimal->DecimalDecimal >> min: Decimal->DecimalDecimal >> negated->DecimalDecimal >> roundTo: Int rounding: Rounding->DecimalDecimal >> scale->IntDecimal >> sign->Int
Dict
Class methods
Dict class >> new->DictDict class >> with: Object value: Object->Dict
Instance methods
Dict >> at: Object->ObjectDict >> at: Object ifAbsent: Block[ -> a]->aDict >> at: Object ifPresent: Block[Object -> a]->Maybe[a]Dict >> at: Object ifPresent: Block[Object -> a] ifAbsent: Block[ -> a]->aDict >> at: Object put: Object->DictDict >> collect: Block[Object -> a]->DictDict >> do: Block[Object Object -> a]->selfDict >> includesKey: Object->BoolDict >> isEmpty->BoolDict >> keys->Array[Object]Dict >> keysAndValuesDo: Block[Object Object -> a]->selfDict >> notEmpty->BoolDict >> reject: Block[Object -> Bool]->DictDict >> removeKey: Object->DictDict >> select: Block[Object -> Bool]->DictDict >> size->IntDict >> values->Array[Object]
Error
Class methods
Error class >> raise: Str->aError class >> try: Block[ -> a] onError: Block[Str -> a]->a
File
Class methods
File class >> append: Str contents: Str->selfFile class >> delete: Str->selfFile class >> exists: Str->BoolFile class >> isDir: Str->BoolFile class >> isFile: Str->BoolFile class >> listDir: Str->Array[Str]File class >> mkdirP: Str->selfFile class >> open: Str->FileHandleFile class >> read: Str->StrFile class >> removeDir: Str->selfFile class >> rename: Str to: Str->selfFile class >> write: Str contents: Str->self
FileDialog
Class methods
FileDialog class >> open: Str title: Str filter: Str->Maybe[Str]FileDialog class >> save: Str title: Str filter: Str->Maybe[Str]
FileHandle
Instance methods
FileHandle >> append: Str->selfFileHandle >> close->selfFileHandle >> readAt: Int size: Int->StrFileHandle >> size->IntFileHandle >> sync->selfFileHandle >> truncateTo: Int->selfFileHandle >> tryLock->Bool
Float
Class methods
Float class >> e->FloatFloat class >> epsilon->FloatFloat class >> infinity->FloatFloat class >> nan->FloatFloat class >> pi->Float
Instance methods
Float >> * Float->FloatFloat >> + Float->FloatFloat >> - Float->FloatFloat >> / Float->FloatFloat >> < Float->BoolFloat >> <= Float->BoolFloat >> > Float->BoolFloat >> >= Float->BoolFloat >> \\ Float->FloatFloat >> abs->FloatFloat >> arcCos->FloatFloat >> arcSin->FloatFloat >> arcTan->FloatFloat >> arcTan: Float->FloatFloat >> asDecimalScale: Int rounding: Rounding->DecimalFloat >> asFloat->FloatFloat >> asInteger->IntFloat >> asString->StrFloat >> between: Float and: Float->BoolFloat >> ceiling->IntFloat >> cos->FloatFloat >> degreesToRadians->FloatFloat >> exp->FloatFloat >> floor->IntFloat >> isFinite->BoolFloat >> isNaN->BoolFloat >> ln->FloatFloat >> log->FloatFloat >> log: Float->FloatFloat >> max: Float->FloatFloat >> min: Float->FloatFloat >> negated->FloatFloat >> radiansToDegrees->FloatFloat >> raisedTo: Float->FloatFloat >> reciprocal->FloatFloat >> roundTo: Float->FloatFloat >> rounded->IntFloat >> sign->IntFloat >> sin->FloatFloat >> sqrt->FloatFloat >> squared->FloatFloat >> tan->FloatFloat >> truncateTo: Float->FloatFloat >> truncated->Int
Future
Class methods
Future class >> sleep: Int->Future[Int]
Instance methods
Future >> await->elemFuture >> awaitFor: Int->Maybe[elem]Future >> isDone->Bool
Gfx
Instance methods
Gfx >> candidateIndex->IntGfx >> candidates->Array[Str]Gfx >> caret: Int y: Int h: Int->UnitGfx >> clear: Int->UnitGfx >> color: Int->UnitGfx >> height->IntGfx >> key->StrGfx >> mouseDown->BoolGfx >> mouseX->IntGfx >> mouseY->IntGfx >> preedit->StrGfx >> preeditCursor->IntGfx >> preeditFocus->IntGfx >> rect: Int y: Int w: Int h: Int->UnitGfx >> text: Str at: Int y: Int size: Int->IntGfx >> width->IntGfx >> width: Str size: Int->Int
Hash
Class methods
Hash class >> crc32: Str->IntHash class >> hmacSha256: Str key: Str->StrHash class >> sha256: Str->StrHash class >> sha512: Str->Str
Hotkey
Class methods
Hotkey class >> register: Str->Bool
Http
Class methods
Http class >> get: Str->HttpResponseHttp class >> get: Str headers: Dict->HttpResponseHttp class >> post: Str body: Str contentType: Str->HttpResponseHttp class >> post: Str body: Str contentType: Str headers: Dict->HttpResponse
HttpResponse
Instance methods
HttpResponse >> body->StrHttpResponse >> headers->DictHttpResponse >> status->Int
Image
Class methods
Image class >> decode: Str->Maybe[Image]
Instance methods
Image >> height->IntImage >> png->StrImage >> width->Int
Instance
Instance methods
Instance >> class->Class
Instant
Class methods
Instant class >> fromMs: Int->InstantInstant class >> localOffset->IntInstant class >> now->InstantInstant class >> offsetOf: Str->IntInstant class >> parse: Str->Instant
Instance methods
Instant >> < Instant->BoolInstant >> <= Instant->BoolInstant >> > Instant->BoolInstant >> >= Instant->BoolInstant >> addMs: Int->InstantInstant >> asDateTimeIn: TimeZone->DateTimeInstant >> asDateTimeOffset: Int->DateTimeInstant >> asLocalDateTime->DateTimeInstant >> asMs->IntInstant >> dateIn: TimeZone->DateInstant >> isoString->StrInstant >> isoStringIn: TimeZone->StrInstant >> isoStringOffset: Int->StrInstant >> max: Instant->InstantInstant >> min: Instant->InstantInstant >> msSince: Instant->Int
Int
Instance methods
Int >> * Int->IntInt >> + Int->IntInt >> - Int->IntInt >> / Int->IntInt >> < Int->BoolInt >> <= Int->BoolInt >> > Int->BoolInt >> >= Int->BoolInt >> \\ Int->IntInt >> abs->IntInt >> asDecimal->DecimalInt >> asFloat->FloatInt >> between: Int and: Int->BoolInt >> bitAnd: Int->IntInt >> bitOr: Int->IntInt >> bitShl: Int->IntInt >> bitShr: Int->IntInt >> bitXor: Int->IntInt >> factorial->IntInt >> max: Int->IntInt >> min: Int->IntInt >> negated->IntInt >> sign->IntInt >> squared->IntInt >> timesRepeat: Block[ -> b]->selfInt >> to: Int->Array[Int]Int >> to: Int do: Block[Int -> b]->self
Json
Class methods
Json class >> parse: Str->Maybe[Json]Json class >> serialize: Object->Str
Instance methods
Json >> asArray->Array[Json]Json >> asBoolean->BoolJson >> asDecimal->DecimalJson >> asFloat->FloatJson >> asInteger->IntJson >> at: Str->JsonJson >> at: Str ifAbsent: Block[ -> Json]->JsonJson >> includesKey: Str->BoolJson >> isNull->BoolJson >> keys->Array[Str]Json >> size->IntJson >> stringValue->Str
Mariadb
Class methods
Mariadb class >> open: Str->MariadbConnection
MariadbConnection
Instance methods
MariadbConnection >> affectedRows->IntMariadbConnection >> begin->selfMariadbConnection >> close->selfMariadbConnection >> commit->selfMariadbConnection >> escape: Str->StrMariadbConnection >> exec: Str->IntMariadbConnection >> exec: Str params: Array[Str] or Array[Maybe[Str]]->IntMariadbConnection >> exec: Str with: Dict->IntMariadbConnection >> query: Str->Array[DbRow]MariadbConnection >> query: Str params: Array[Str] or Array[Maybe[Str]]->Array[DbRow]MariadbConnection >> query: Str with: Dict->Array[DbRow]MariadbConnection >> rollback->selfMariadbConnection >> withTx: Block[self -> a]->a
Maybe
Instance methods
Maybe >> collect: Block[elem -> a]->Maybe[a]Maybe >> ifPresent: Block[elem -> a]->selfMaybe >> ifPresent: Block[elem -> a] ifAbsent: Block[ -> a]->aMaybe >> isAbsent->BoolMaybe >> isPresent->BoolMaybe >> orElse: elem->elem
MsgPack
Class methods
MsgPack class >> parse: Str->Maybe[Json]MsgPack class >> serialize: Object->Str
OS
Class methods
OS class >> argv->Array[Str]OS class >> currentDomain->IntOS class >> exec: Str->Dict{exit: Int, stdout: Str, stderr: Str}OS class >> exec: Str input: Str->Dict{exit: Int, stdout: Str, stderr: Str}OS class >> exit: Int->UnitOS class >> foregroundApp->Maybe[Str]OS class >> getenv: Str->Maybe[Str]OS class >> getenv: Str default: Str->StrOS class >> kill: Int->BoolOS class >> monotonic->IntOS class >> running: Int->BoolOS class >> shutdownWorkerDomains->UnitOS class >> sleep: Int->UnitOS class >> spawn: Str->IntOS class >> spawn: Str output: Str->IntOS class >> startWorkerDomains: Int->UnitOS class >> time->IntOS class >> timeNs->Int
Object
Instance methods
Object >> = self->BoolObject >> asString->StrObject >> className->StrObject >> display->selfObject >> displayNl->selfObject >> displayString->StrObject >> print->selfObject >> printNl->selfObject >> printString->StrObject >> ~= self->Bool
Paint
Class methods
Paint class >> caret: Int y: Int h: Int->PaintPaint class >> caret: Int y: Int h: Int rest: Str size: Int color: Symbol->PaintPaint class >> clip: Paint x: Int y: Int w: Int h: Int->PaintPaint class >> column: Array[Paint] gap: Int->PaintPaint class >> disc: Int y: Int r: Int color: Symbol->PaintPaint class >> group: Array[Paint]->PaintPaint class >> image: Image x: Int y: Int w: Int h: Int->PaintPaint class >> line: Int y: Int to: Int y: Int wide: Int color: Symbol->PaintPaint class >> modal: Paint->PaintPaint class >> move: Paint x: Int y: Int->PaintPaint class >> over: Paint->PaintPaint class >> poly: Array[Int] color: Symbol->PaintPaint class >> rect: Int y: Int w: Int h: Int color: Symbol->PaintPaint class >> row: Array[Paint] gap: Int->PaintPaint class >> text: Str at: Int y: Int size: Int color: Symbol->PaintPaint class >> widthOf: Str size: Int->Int
Instance methods
Paint >> accel: Str->PaintPaint >> bottom->IntPaint >> dropDown->PaintPaint >> height->IntPaint >> tabIndex: Int->PaintPaint >> tabStop: Bool->PaintPaint >> top->IntPaint >> width->Int
Postgres
Class methods
Postgres class >> open: Str->PostgresConnection
PostgresConnection
Instance methods
PostgresConnection >> begin->selfPostgresConnection >> close->selfPostgresConnection >> commit->selfPostgresConnection >> exec: Str->IntPostgresConnection >> exec: Str params: Array[Str] or Array[Maybe[Str]]->IntPostgresConnection >> exec: Str with: Dict->IntPostgresConnection >> query: Str->Array[DbRow]PostgresConnection >> query: Str params: Array[Str] or Array[Maybe[Str]]->Array[DbRow]PostgresConnection >> query: Str with: Dict->Array[DbRow]PostgresConnection >> rollback->selfPostgresConnection >> withTx: Block[self -> a]->a
Regex
Class methods
Regex class >> compile: Str->RegexRegex class >> compileIgnoringCase: Str->Regex
Instance methods
Regex >> findAll: Str->Array[Str]Regex >> match: Str->Maybe[Str]Regex >> matches: Str->BoolRegex >> replaceAll: Str using: Block[RegexMatch -> Str]->StrRegex >> replaceAll: Str with: Str->StrRegex >> search: Str->Maybe[RegexMatch]Regex >> searchAll: Str->Array[RegexMatch]Regex >> split: Str->Array[Str]
RegexMatch
Instance methods
RegexMatch >> end->IntRegexMatch >> group: Int->Maybe[Str]RegexMatch >> named: Str->Maybe[Str]RegexMatch >> start->IntRegexMatch >> text->Str
Rounding
Class methods
Rounding class >> ceiling->RoundingRounding class >> down->RoundingRounding class >> floor->RoundingRounding class >> halfDown->RoundingRounding class >> halfEven->RoundingRounding class >> halfUp->RoundingRounding class >> unnecessary->RoundingRounding class >> up->Rounding
Sql
Instance methods
Sql >> params->Array[Maybe[Str]]Sql >> text->Str
SqlTemplate
Class methods
SqlTemplate class >> parse: Str->SqlTemplate
Instance methods
SqlTemplate >> readsBindings->BoolSqlTemplate >> render: Object->SqlSqlTemplate >> render: Object dialect: Str->SqlSqlTemplate >> render: Object dialect: Str entity: Object->SqlSqlTemplate >> render: Object options: Object->Sql
Str
Class methods
Str class >> fromCodes: Array[Int]->Str
Instance methods
Str >> , Str->StrStr >> < Str->BoolStr >> <= Str->BoolStr >> > Str->BoolStr >> >= Str->BoolStr >> asArray->Array[Str]Str >> asDecimal->Maybe[Decimal]Str >> asFloat->Maybe[Float]Str >> asInteger->IntStr >> asLowercase->StrStr >> asUppercase->StrStr >> asUppercaseFirst->StrStr >> byteAt: Int->IntStr >> charAt: Int->StrStr >> charCount->IntStr >> charsFrom: Int to: Int->StrStr >> concat: Str->StrStr >> copyFrom: Int to: Int->StrStr >> do: Block[elem -> a]->selfStr >> do: Block[elem -> b] separatedBy: Block[ -> b]->selfStr >> endsWith: Str->BoolStr >> first->StrStr >> includes: Str->BoolStr >> indexOf: Str->IntStr >> indexOf: Str ifAbsent: Block[ -> Int]->IntStr >> inject: a into: Block[a elem -> a]->aStr >> isEmpty->BoolStr >> last->StrStr >> lines->Array[Str]Str >> notEmpty->BoolStr >> replaceAll: Str with: Str->StrStr >> reversed->StrStr >> size->IntStr >> splitOn: Str->Array[Str]Str >> startsWith: Str->BoolStr >> trimmed->StrStr >> withIndexDo: Block[Int elem -> a]->self
TCP
Class methods
TCP class >> connect: Str port: Int->TCPSocketTCP class >> connect: Str port: Int timeout: Int->TCPSocketTCP class >> listen: Int->TCPServerTCP class >> listenHost: Str port: Int->TCPServer
TCPServer
Instance methods
TCPServer >> accept->TCPSocketTCPServer >> close->selfTCPServer >> port->Int
TCPSocket
Instance methods
TCPSocket >> close->selfTCPSocket >> peerAddress->StrTCPSocket >> readBytes: Int->Maybe[Str]TCPSocket >> readBytes: Int timeout: Int->Maybe[Str]TCPSocket >> readLine->Maybe[Str]TCPSocket >> readLine: Int->Maybe[Str]TCPSocket >> write: Str->selfTCPSocket >> writeLine: Str->self
TLS
Class methods
TLS class >> wrapClient: TCPSocket host: Str->TLSSocketTLS class >> wrapClient: TCPSocket host: Str timeout: Int->TLSSocket
TLSSocket
Instance methods
TLSSocket >> close->selfTLSSocket >> readBytes: Int->Maybe[Str]TLSSocket >> readBytes: Int timeout: Int->Maybe[Str]TLSSocket >> readLine->Maybe[Str]TLSSocket >> readLine: Int->Maybe[Str]TLSSocket >> write: Str->selfTLSSocket >> writeLine: Str->self
TimeZone
Class methods
TimeZone class >> databaseVersion->StrTimeZone class >> local->TimeZoneTimeZone class >> named: Str->TimeZoneTimeZone class >> names->Array[Str]TimeZone class >> utc->TimeZone
Instance methods
TimeZone >> name->StrTimeZone >> offsetAt: Instant->Int
Tray
Class methods
Tray class >> item: Str->PaintTray class >> separator->Paint
Window
Class methods
Window class >> close->UnitWindow class >> hide->UnitWindow class >> minimize->UnitWindow class >> show->Unit
Zlib
Class methods
Zlib class >> compress: Str->StrZlib class >> decompress: Str->Maybe[Str]
Standard library
Written in LP-9, in stdlib/. A program reaches it with
imports: (Ui). at the top of the file.
Col
Class methods
Col class >> acrossOf: colsCol class >> amount: t wide: wCol class >> cell: s in: c at: x y: y color: inkCol class >> cells: ss in: cols on: bgCol class >> headingOf: colsCol class >> title: t wide: wCol class >> xOf: i in: cols
Instance methods
Col >> rightCol >> titleCol >> wide
Comparable
Instance methods
Comparable >> <= otherComparable >> > otherComparable >> >= otherComparable >> max: otherComparable >> min: other
Edit
Class methods
Edit class >> emptyEdit class >> firstLineOf: sEdit class >> joinersEdit class >> joins: cEdit class >> kindOf: cEdit class >> of: sEdit class >> zwj
Instance methods
Edit >> afterEdit >> atEdit >> back: iEdit >> backspaceEdit >> becomes: t at: i typing: kEdit >> beforeEdit >> caretAt: iEdit >> caretAt: i keep: keepEdit >> clip: kEdit >> copySelectionEdit >> deleteEdit >> drag: dx wide: wEdit >> endEdit >> hasSelectionEdit >> homeEdit >> indexAt: x wide: wEdit >> joinsAt: iEdit >> key: kEdit >> kindAt: iEdit >> leftEdit >> nearest: want from: iEdit >> on: iEdit >> paste: sEdit >> press: x wide: wEdit >> rightEdit >> selEndEdit >> selStartEdit >> selectAllEdit >> selectKey: kEdit >> selectedEdit >> skip: i kind: k by: dEdit >> textEdit >> type: sEdit >> undoEdit >> withoutSelectionEdit >> word: x wide: wEdit >> wordAfter: iEdit >> wordAround: iEdit >> wordBefore: i
Enumerable
Instance methods
Enumerable >> allSatisfy: predEnumerable >> anySatisfy: predEnumerable >> collect: blockEnumerable >> countEnumerable >> count: predEnumerable >> detect: predEnumerable >> detect: pred ifNone: noneBlockEnumerable >> do: aBlock separatedBy: sepBlockEnumerable >> firstIfEmpty: aBlockEnumerable >> flatCollect: blockEnumerable >> includes: elemEnumerable >> joinWith: separatorEnumerable >> lastIfEmpty: aBlockEnumerable >> maxEnumerable >> minEnumerable >> noneSatisfy: predEnumerable >> reject: predEnumerable >> select: predEnumerable >> sum
Memo
Class methods
Memo class >> breaks: c before: dMemo class >> closes: dMemo class >> lineHighMemo class >> nlMemo class >> of: s wide: w high: hMemo class >> plain: sMemo class >> wrap: s wide: w size: n
Instance methods
Memo >> atMemo >> caretLineMemo >> changed: xMemo >> contentMemo >> drag: dx y: dyMemo >> dragBar: dyMemo >> editMemo >> editKey: kMemo >> endsKey: kMemo >> highMemo >> keepCaretMemo >> key: kMemo >> laidOutMemo >> lineAtY: yMemo >> lineCountMemo >> lineEnd: kpMemo >> lineHome: kpMemo >> lineOf: i tail: tMemo >> lines: n keep: kpMemo >> moved: xMemo >> nearest: want in: s from: iMemo >> on: k nearest: wantMemo >> pageMemo >> pages: n keep: kpMemo >> place: x goal: g tail: tMemo >> pointAt: x y: y keep: kpMemo >> press: x y: yMemo >> scrollBy: dyMemo >> scrollTo: tMemo >> selEndMemo >> selStartMemo >> spanAt: kMemo >> textMemo >> textFrom: a to: bMemo >> textWideMemo >> topMemo >> type: sMemo >> wheel: rowsMemo >> wideMemo >> wide: w high: hMemo >> widthFrom: a to: bMemo >> word: x y: yMemo >> wraps: k
OrderedDict
Class methods
OrderedDict class >> new
Instance methods
OrderedDict >> asArrayOrderedDict >> asDictOrderedDict >> at: kOrderedDict >> at: k ifAbsent: blkOrderedDict >> at: k put: vOrderedDict >> do: blockOrderedDict >> includes: kOrderedDict >> inject: init into: blockOrderedDict >> isEmptyOrderedDict >> keysOrderedDict >> remove: kOrderedDict >> size
Span
Instance methods
Span >> aSpan >> b
Theme
Class methods
Theme class >> accentsTheme class >> dark: bTheme class >> dayTheme class >> night
Tree
Class methods
Tree class >> roots: idsTree class >> roots: ids kids: dTree class >> roots: ids leaf: blkTree class >> rowHigh
Instance methods
Tree >> choose: idTree >> chosenTree >> collapse: idTree >> countBelow: idTree >> countOf: idsTree >> deeperTree >> depthOf: idTree >> enter: id on: w from: lo to: hiTree >> expand: idTree >> followTree >> hasKids: idTree >> highTree >> high: hTree >> is: n under: branchTree >> isOpen: idTree >> key: kTree >> kidsOf: idTree >> load: id kids: ids leaf: blkTree >> look: target at: id on: wTree >> moveBy: dTree >> needsTree >> pass: id on: w from: lo to: hi rows: nTree >> rowAt: rowTree >> rowCountTree >> rowOf: idTree >> rowsFrom: lo to: hiTree >> rowsShownTree >> scrollBy: dyTree >> scrollTo: yTree >> seek: target in: ids on: wTree >> shallowerTree >> toggle: idTree >> topTree >> walk: ids on: w from: lo to: hiTree >> wheel: rows
TreeWalk
Class methods
TreeWalk class >> done: n got: ids
Instance methods
TreeWalk >> doneTreeWalk >> got
W
Class methods
W class >> accelOf: sW class >> ampOf: sW class >> area: s wide: w high: hW class >> bar: n wide: wW class >> broken: s wide: w size: nW class >> button: s wide: wW class >> caption: s at: x y: y size: nW class >> captionOf: sW class >> cell: s wide: w right: r on: bgW class >> check: on labelled: sW class >> chip: c on: hotW class >> combo: s wide: wW class >> day: n on: hotW class >> edit: e wide: wW class >> faint: sW class >> field: s wide: wW class >> gap: hW class >> gem: onW class >> head: s open: o wide: wW class >> heading: s wide: w right: rW class >> item: s on: hot wide: wW class >> label: sW class >> lastLineOf: sW class >> lineCountOf: sW class >> lineHigh: nW class >> link: sW class >> memo: mW class >> memoBar: mW class >> memoLine: k of: m caret: cW class >> memoSelection: k of: m y: yW class >> meter: n of: m wide: wW class >> month: shown cell: blkW class >> month: shown from: first cell: blkW class >> monthHighW class >> monthWideW class >> node: s on: hot wide: wW class >> pad: px y: py wide: wW class >> panel: w high: hW class >> panel: w high: h on: bgW class >> pill: s on: hotW class >> plot: xs wide: w high: hW class >> radio: on labelled: sW class >> ringW class >> round: sW class >> row: ps gap: g middle: hW class >> rt: t x: x y: y size: n color: cW class >> rule: wW class >> scroll: top of: content in: box wide: wW class >> scrollHighOf: content in: boxW class >> scrollOf: dy in: box of: contentW class >> scrollRun: dy in: box of: contentW class >> scrollTopOf: top of: content in: boxW class >> seg: xs at: i low: lo span: span step: step high: hW class >> selectionOf: eW class >> slider: n wide: wW class >> small: s wide: wW class >> spark: xs wide: w high: hW class >> sparkOf: xs wide: w high: hW class >> spinner: phaseW class >> swatch: c named: sW class >> switch: onW class >> tab: s on: hot wide: wW class >> title: sW class >> tree: t wide: w cell: blkW class >> twisty: o kids: has depth: dW class >> two: nW class >> weekday: nW class >> weeksOf: shown cell: blkW class >> weeksOf: shown from: first cell: blkW class >> well: s wide: wW class >> wide: w hold: qW class >> wide: w middle: qW class >> wide: w right: qW class >> withAccel: p of: sW class >> wrapped: s wide: w size: n
Wrapping
Class methods
Wrapping class >> start
Instance methods
Wrapping >> after: iWrapping >> done: nWrapping >> step: i of: s chars: cs widths: ws wide: w size: n