Package-level declarations

Types

Link copied to clipboard
data class EvaluableString(val content: String)

A String wrapper that, when used as a function parameter, lets ValueFactory.evaluableString evaluate the raw content. This allows function calls and other scripting techniques to be used executed within the string itself, which would otherwise be natively unsupported unless the String argument is inlined (not used as a block argument). Inline string evaluation is handled directly by the parser com.quarkdown.core.parser.BlockTokenParser). This is used for example in the .code stdlib function.

Link copied to clipboard
open class Lambda(val parentContext: Context, val explicitParameters: List<LambdaParameter> = emptyList(), val action: (List<Value<*>>, Context) -> OutputValue<*>)

An action block with a variable parameter count. The return type is dynamic (a snippet of raw Quarkdown code is returned), hence it is evaluated and converted to a static type.

Link copied to clipboard
data class LambdaParameter(val name: String, val isOptional: Boolean = false)
Link copied to clipboard
data class Range(val start: Int?, val end: Int?) : Iterable<NumberValue>

Represents a range of numbers, which can also be iterated through.

Functions

Link copied to clipboard
fun <T> List<T>.subList(range: Range): List<T>