PtcRunner.Lisp.Runtime (PtcRunner v0.9.0)

Copy Markdown View Source

Built-in functions for PTC-Lisp.

Provides collection operations, map operations, arithmetic, string manipulation, and type predicates. This module acts as the public API and delegates to focused submodules:

  • Runtime.FlexAccess - Flexible key access helpers
  • Runtime.Collection - Collection operations (filter, map, reduce, etc.)
  • Runtime.MapOps - Map operations (get, assoc, merge, etc.)
  • Runtime.String - String manipulation and parsing
  • Runtime.Math - Arithmetic operations
  • Runtime.Predicates - Type and numeric predicates

Summary

Functions

Functions

abs(x)

See PtcRunner.Lisp.Runtime.Math.abs/1.

add(args)

See PtcRunner.Lisp.Runtime.Math.add/1.

assoc(m, k, v)

See PtcRunner.Lisp.Runtime.MapOps.assoc/3.

assoc_in(m, path, v)

See PtcRunner.Lisp.Runtime.MapOps.assoc_in/3.

assoc_variadic(args)

See PtcRunner.Lisp.Runtime.MapOps.assoc_variadic/1.

avg(coll)

See PtcRunner.Lisp.Runtime.Collection.avg/1.

avg_by(keyfn, coll)

See PtcRunner.Lisp.Runtime.Collection.avg_by/2.

boolean(x)

See PtcRunner.Lisp.Runtime.Predicates.boolean/1.

boolean?(x)

See PtcRunner.Lisp.Runtime.Predicates.boolean?/1.

butlast(coll)

See PtcRunner.Lisp.Runtime.Collection.butlast/1.

ceil(x)

See PtcRunner.Lisp.Runtime.Math.ceil/1.

char?(x)

See PtcRunner.Lisp.Runtime.Predicates.char?/1.

coll?(x)

See PtcRunner.Lisp.Runtime.Predicates.coll?/1.

combinations(coll, n)

See PtcRunner.Lisp.Runtime.Collection.combinations/2.

compare(x, y)

See PtcRunner.Lisp.Runtime.Math.compare/2.

concat2(a, b)

See PtcRunner.Lisp.Runtime.Collection.concat2/2.

conj(coll, x)

See PtcRunner.Lisp.Runtime.Collection.conj/2.

contains?(coll, val)

See PtcRunner.Lisp.Runtime.Collection.contains?/2.

count(coll)

See PtcRunner.Lisp.Runtime.Collection.count/1.

current_time_millis()

See PtcRunner.Lisp.Runtime.Interop.current_time_millis/0.

dec(x)

See PtcRunner.Lisp.Runtime.Math.dec/1.

difference(s1, s2)

See PtcRunner.Lisp.Runtime.Collection.difference/2.

dissoc(m, k)

See PtcRunner.Lisp.Runtime.MapOps.dissoc/2.

dissoc_variadic(args)

See PtcRunner.Lisp.Runtime.MapOps.dissoc_variadic/1.

distinct(coll)

See PtcRunner.Lisp.Runtime.Collection.distinct/1.

distinct_by(keyfn, coll)

See PtcRunner.Lisp.Runtime.Collection.distinct_by/2.

divide(x, y)

See PtcRunner.Lisp.Runtime.Math.divide/2.

dot_get_time(dt)

See PtcRunner.Lisp.Runtime.Interop.dot_get_time/1.

dot_index_of(s, substring)

See PtcRunner.Lisp.Runtime.Interop.dot_index_of/2.

dot_index_of(s, substring, from)

See PtcRunner.Lisp.Runtime.Interop.dot_index_of/3.

dot_last_index_of(s, substring)

See PtcRunner.Lisp.Runtime.Interop.dot_last_index_of/2.

double(x)

See PtcRunner.Lisp.Runtime.Math.double/1.

downcase(s)

See PtcRunner.Lisp.Runtime.String.downcase/1.

drop(n, coll)

See PtcRunner.Lisp.Runtime.Collection.drop/2.

drop_last(coll)

See PtcRunner.Lisp.Runtime.Collection.drop_last/1.

drop_last(n, coll)

See PtcRunner.Lisp.Runtime.Collection.drop_last/2.

drop_while(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.drop_while/2.

empty?(coll)

See PtcRunner.Lisp.Runtime.Collection.empty?/1.

ends_with?(s, suffix)

See PtcRunner.Lisp.Runtime.String.ends_with?/2.

entries(m)

See PtcRunner.Lisp.Runtime.MapOps.entries/1.

even?(x)

See PtcRunner.Lisp.Runtime.Predicates.even?/1.

every?(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.every?/2.

extract(pattern, string)

See PtcRunner.Lisp.Runtime.Regex.extract/2.

extract(pattern, string, group)

See PtcRunner.Lisp.Runtime.Regex.extract/3.

extract_int(pattern, string)

See PtcRunner.Lisp.Runtime.Regex.extract_int/2.

extract_int(pattern, string, group)

See PtcRunner.Lisp.Runtime.Regex.extract_int/3.

extract_int(pattern, string, group, default)

See PtcRunner.Lisp.Runtime.Regex.extract_int/4.

ffirst(coll)

See PtcRunner.Lisp.Runtime.Collection.ffirst/1.

filter(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.filter/2.

find(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.find/2.

first(coll)

See PtcRunner.Lisp.Runtime.Collection.first/1.

flatten(coll)

See PtcRunner.Lisp.Runtime.Collection.flatten/1.

flex_fetch(map, key)

See PtcRunner.Lisp.Runtime.FlexAccess.flex_fetch/2.

flex_get(map, key)

See PtcRunner.Lisp.Runtime.FlexAccess.flex_get/2.

flex_get_in(data, path)

See PtcRunner.Lisp.Runtime.FlexAccess.flex_get_in/2.

flex_put_in(data, path, value)

See PtcRunner.Lisp.Runtime.FlexAccess.flex_put_in/3.

flex_update_in(data, path, func)

See PtcRunner.Lisp.Runtime.FlexAccess.flex_update_in/3.

float(x)

See PtcRunner.Lisp.Runtime.Math.float/1.

floor(x)

See PtcRunner.Lisp.Runtime.Math.floor/1.

fnext(coll)

See PtcRunner.Lisp.Runtime.Collection.fnext/1.

fnil(f, default)

See PtcRunner.Lisp.Runtime.Predicates.fnil/2.

frequencies(coll)

See PtcRunner.Lisp.Runtime.Collection.frequencies/1.

get(m, k)

See PtcRunner.Lisp.Runtime.MapOps.get/2.

get(m, k, default)

See PtcRunner.Lisp.Runtime.MapOps.get/3.

get_in(m, path)

See PtcRunner.Lisp.Runtime.MapOps.get_in/2.

get_in(m, path, default)

See PtcRunner.Lisp.Runtime.MapOps.get_in/3.

grep(pattern, text)

See PtcRunner.Lisp.Runtime.String.grep/2.

grep_n(pattern, text)

See PtcRunner.Lisp.Runtime.String.grep_n/2.

grep_n(pattern, text, context)

See PtcRunner.Lisp.Runtime.String.grep_n/3.

group_by(keyfn, coll)

See PtcRunner.Lisp.Runtime.Collection.group_by/2.

gt(x, y)

See PtcRunner.Lisp.Runtime.Math.gt/2.

gte(x, y)

See PtcRunner.Lisp.Runtime.Math.gte/2.

identity(x)

See PtcRunner.Lisp.Runtime.Predicates.identity/1.

inc(x)

See PtcRunner.Lisp.Runtime.Math.inc/1.

includes?(s, substring)

See PtcRunner.Lisp.Runtime.String.includes?/2.

index_of(s, value)

See PtcRunner.Lisp.Runtime.String.index_of/2.

index_of(s, value, from_index)

See PtcRunner.Lisp.Runtime.String.index_of/3.

int(x)

See PtcRunner.Lisp.Runtime.Math.int/1.

interleave(c1, c2)

See PtcRunner.Lisp.Runtime.Collection.interleave/2.

interpose(sep, coll)

See PtcRunner.Lisp.Runtime.Collection.interpose/2.

intersection(s1, s2)

See PtcRunner.Lisp.Runtime.Collection.intersection/2.

into(to, from)

See PtcRunner.Lisp.Runtime.Collection.into/2.

java_util_date()

See PtcRunner.Lisp.Runtime.Interop.java_util_date/0.

java_util_date(ms)

See PtcRunner.Lisp.Runtime.Interop.java_util_date/1.

join(coll)

See PtcRunner.Lisp.Runtime.String.join/1.

join(separator, coll)

See PtcRunner.Lisp.Runtime.String.join/2.

key(entry)

See PtcRunner.Lisp.Runtime.MapOps.key/1.

keys(m)

See PtcRunner.Lisp.Runtime.MapOps.keys/1.

keyword?(x)

See PtcRunner.Lisp.Runtime.Predicates.keyword?/1.

last(coll)

See PtcRunner.Lisp.Runtime.Collection.last/1.

last_index_of(s, value)

See PtcRunner.Lisp.Runtime.String.last_index_of/2.

last_index_of(s, value, from_index)

See PtcRunner.Lisp.Runtime.String.last_index_of/3.

local_date_parse(s)

See PtcRunner.Lisp.Runtime.Interop.local_date_parse/1.

lt(x, y)

See PtcRunner.Lisp.Runtime.Math.lt/2.

lte(x, y)

See PtcRunner.Lisp.Runtime.Math.lte/2.

map(f, coll)

See PtcRunner.Lisp.Runtime.Collection.map/2.

map(f, coll1, coll2)

See PtcRunner.Lisp.Runtime.Collection.map/3.

map(f, coll1, coll2, coll3)

See PtcRunner.Lisp.Runtime.Collection.map/4.

map?(x)

See PtcRunner.Lisp.Runtime.Predicates.map?/1.

map_indexed(f, coll)

See PtcRunner.Lisp.Runtime.Collection.map_indexed/2.

mapcat(f, coll)

See PtcRunner.Lisp.Runtime.Collection.mapcat/2.

mapv(f, coll)

See PtcRunner.Lisp.Runtime.Collection.mapv/2.

mapv(f, coll1, coll2)

See PtcRunner.Lisp.Runtime.Collection.mapv/3.

mapv(f, coll1, coll2, coll3)

See PtcRunner.Lisp.Runtime.Collection.mapv/4.

max(x, y)

See PtcRunner.Lisp.Runtime.Math.max/2.

max_by(keyfn, coll)

See PtcRunner.Lisp.Runtime.Collection.max_by/2.

max_by_variadic(args)

See PtcRunner.Lisp.Runtime.Collection.max_by_variadic/1.

max_key_variadic(args)

See PtcRunner.Lisp.Runtime.Collection.max_key_variadic/1.

merge(m1, m2)

See PtcRunner.Lisp.Runtime.MapOps.merge/2.

min(x, y)

See PtcRunner.Lisp.Runtime.Math.min/2.

min_by(keyfn, coll)

See PtcRunner.Lisp.Runtime.Collection.min_by/2.

min_by_variadic(args)

See PtcRunner.Lisp.Runtime.Collection.min_by_variadic/1.

min_key_variadic(args)

See PtcRunner.Lisp.Runtime.Collection.min_key_variadic/1.

mod(x, y)

See PtcRunner.Lisp.Runtime.Math.mod/2.

multiply(args)

See PtcRunner.Lisp.Runtime.Math.multiply/1.

neg?(x)

See PtcRunner.Lisp.Runtime.Predicates.neg?/1.

next(coll)

See PtcRunner.Lisp.Runtime.Collection.next/1.

nfirst(coll)

See PtcRunner.Lisp.Runtime.Collection.nfirst/1.

nil?(x)

See PtcRunner.Lisp.Runtime.Predicates.nil?/1.

nnext(coll)

See PtcRunner.Lisp.Runtime.Collection.nnext/1.

not_(x)

See PtcRunner.Lisp.Runtime.Predicates.not_/1.

not_any?(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.not_any?/2.

not_empty(coll)

See PtcRunner.Lisp.Runtime.Collection.not_empty/1.

not_eq(x, y)

See PtcRunner.Lisp.Runtime.Math.not_eq/2.

nth(coll, idx)

See PtcRunner.Lisp.Runtime.Collection.nth/2.

number?(x)

See PtcRunner.Lisp.Runtime.Predicates.number?/1.

odd?(x)

See PtcRunner.Lisp.Runtime.Predicates.odd?/1.

parse_double(s)

See PtcRunner.Lisp.Runtime.String.parse_double/1.

parse_long(s)

See PtcRunner.Lisp.Runtime.String.parse_long/1.

partition(n, coll)

See PtcRunner.Lisp.Runtime.Collection.partition/2.

partition(n, step, coll)

See PtcRunner.Lisp.Runtime.Collection.partition/3.

partition(n, step, pad, coll)

See PtcRunner.Lisp.Runtime.Collection.partition/4.

partition_all(n, coll)

See PtcRunner.Lisp.Runtime.Collection.partition_all/2.

partition_all(n, step, coll)

See PtcRunner.Lisp.Runtime.Collection.partition_all/3.

pluck(key, coll)

See PtcRunner.Lisp.Runtime.Collection.pluck/2.

pos?(x)

See PtcRunner.Lisp.Runtime.Predicates.pos?/1.

postwalk(f, form)

See PtcRunner.Lisp.Runtime.Collection.postwalk/2.

pow(x, y)

See PtcRunner.Lisp.Runtime.Math.pow/2.

pr_str_variadic(args)

See PtcRunner.Lisp.Runtime.String.pr_str_variadic/1.

prewalk(f, form)

See PtcRunner.Lisp.Runtime.Collection.prewalk/2.

range(end_val)

See PtcRunner.Lisp.Runtime.Collection.range/1.

range(start, end_val)

See PtcRunner.Lisp.Runtime.Collection.range/2.

range(start, end_val, step)

See PtcRunner.Lisp.Runtime.Collection.range/3.

re_find(re, s)

See PtcRunner.Lisp.Runtime.Regex.re_find/2.

re_matches(re, s)

See PtcRunner.Lisp.Runtime.Regex.re_matches/2.

re_pattern(s)

See PtcRunner.Lisp.Runtime.Regex.re_pattern/1.

re_seq(re, s)

See PtcRunner.Lisp.Runtime.Regex.re_seq/2.

re_split(re, s)

See PtcRunner.Lisp.Runtime.Regex.re_split/2.

reduce(f, coll)

See PtcRunner.Lisp.Runtime.Collection.reduce/2.

reduce(f, init, coll)

See PtcRunner.Lisp.Runtime.Collection.reduce/3.

regex?(x)

See PtcRunner.Lisp.Runtime.Predicates.regex?/1.

remainder(x, y)

See PtcRunner.Lisp.Runtime.Math.remainder/2.

remove(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.remove/2.

replace(s, pattern, replacement)

See PtcRunner.Lisp.Runtime.String.replace/3.

rest(coll)

See PtcRunner.Lisp.Runtime.Collection.rest/1.

reverse(coll)

See PtcRunner.Lisp.Runtime.Collection.reverse/1.

round(x)

See PtcRunner.Lisp.Runtime.Math.round/1.

second(coll)

See PtcRunner.Lisp.Runtime.Collection.second/1.

select_keys(m, ks)

See PtcRunner.Lisp.Runtime.MapOps.select_keys/2.

seq(coll)

See PtcRunner.Lisp.Runtime.Collection.seq/1.

seq?(x)

See PtcRunner.Lisp.Runtime.Predicates.seq?/1.

sequential?(x)

See PtcRunner.Lisp.Runtime.Predicates.sequential?/1.

set(coll)

See PtcRunner.Lisp.Runtime.Predicates.set/1.

set?(x)

See PtcRunner.Lisp.Runtime.Predicates.set?/1.

some(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.some/2.

some?(x)

See PtcRunner.Lisp.Runtime.Predicates.some?/1.

sort(coll)

See PtcRunner.Lisp.Runtime.Collection.sort/1.

sort(comp, coll)

See PtcRunner.Lisp.Runtime.Collection.sort/2.

sort_by(keyfn, coll)

See PtcRunner.Lisp.Runtime.Collection.sort_by/2.

sort_by(keyfn, comp, coll)

See PtcRunner.Lisp.Runtime.Collection.sort_by/3.

split(s, separator)

See PtcRunner.Lisp.Runtime.String.split/2.

split_lines(s)

See PtcRunner.Lisp.Runtime.String.split_lines/1.

sqrt(x)

See PtcRunner.Lisp.Runtime.Math.sqrt/1.

starts_with?(s, prefix)

See PtcRunner.Lisp.Runtime.String.starts_with?/2.

str_variadic(args)

See PtcRunner.Lisp.Runtime.String.str_variadic/1.

string?(x)

See PtcRunner.Lisp.Runtime.Predicates.string?/1.

subs(s, start)

See PtcRunner.Lisp.Runtime.String.subs/2.

subs(s, start, end_idx)

See PtcRunner.Lisp.Runtime.String.subs/3.

subtract(args)

See PtcRunner.Lisp.Runtime.Math.subtract/1.

sum(coll)

See PtcRunner.Lisp.Runtime.Collection.sum/1.

sum_by(keyfn, coll)

See PtcRunner.Lisp.Runtime.Collection.sum_by/2.

take(n, coll)

See PtcRunner.Lisp.Runtime.Collection.take/2.

take_last(n, coll)

See PtcRunner.Lisp.Runtime.Collection.take_last/2.

take_while(pred, coll)

See PtcRunner.Lisp.Runtime.Collection.take_while/2.

tree_seq(branch?, children, root)

See PtcRunner.Lisp.Runtime.Collection.tree_seq/3.

trim(s)

See PtcRunner.Lisp.Runtime.String.trim/1.

trunc(x)

See PtcRunner.Lisp.Runtime.Math.trunc/1.

type_of(x)

See PtcRunner.Lisp.Runtime.Predicates.type_of/1.

union(s1, s2)

See PtcRunner.Lisp.Runtime.Collection.union/2.

upcase(s)

See PtcRunner.Lisp.Runtime.String.upcase/1.

update(m, k, f)

See PtcRunner.Lisp.Runtime.MapOps.update/3.

update_in(m, path, f)

See PtcRunner.Lisp.Runtime.MapOps.update_in/3.

update_in_variadic(args)

See PtcRunner.Lisp.Runtime.MapOps.update_in_variadic/1.

update_vals(m, f)

See PtcRunner.Lisp.Runtime.MapOps.update_vals/2.

update_variadic(args)

See PtcRunner.Lisp.Runtime.MapOps.update_variadic/1.

val(entry)

See PtcRunner.Lisp.Runtime.MapOps.val/1.

vals(m)

See PtcRunner.Lisp.Runtime.MapOps.vals/1.

vec(coll)

See PtcRunner.Lisp.Runtime.Predicates.vec/1.

vector?(x)

See PtcRunner.Lisp.Runtime.Predicates.vector?/1.

walk(inner, outer, form)

See PtcRunner.Lisp.Runtime.Collection.walk/3.

zero?(x)

See PtcRunner.Lisp.Runtime.Predicates.zero?/1.

zip(c1, c2)

See PtcRunner.Lisp.Runtime.Collection.zip/2.