"prompt","text","type" "In Axon language, In Axon language, Convert a number to a string","123.toStr","code" "In Axon language, Concatenate strings using '+'","""num="" + 3","code" "In Axon language, Check if a string is empty","""hi world"".isEmpty","code" "In Axon language, Get the size of a string","""hi world"".size","code" "In Axon language, Access a character in a string by index","""hi world""[5]","code" "In Axon language, Slice a string using a range","""hi world""[3..-2]","code" "In Axon language, Find the index of a substring","""root toot"".index(""oo"")","code" "In Axon language, Find the last index of a substring","""root toot"".indexr(""oo"")","code" "In Axon language, Check if a string contains a substring","""hi world"".contains(""hi"")","code" "In Axon language, Convert a string to uppercase","""Abc"".upper","code" "In Axon language, Convert a string to lowercase","""Abc"".lower","code" "In Axon language, Split a string by a delimiter","""a,b,c"".split("","")","code" "In Axon language, Capitalize a string","""fooBar"".capitalize","code" "In Axon language, Decapitalize a string","""FooBar"".decapitalize","code" "In Axon language, Trim whitespace from a string",""" xyz "".trim","code" "In Axon language, Check if a string starts with a substring","""abcd"".startsWith(""ab"")","code" "In Axon language, Check if a string ends with a substring","""abcd"".endsWith(""cd"")","code" "In Axon language, Check if a string is a tag name","""foo bar"".isTagName","code" "In Axon language, Convert a string to a tag name","""foo bar"".toTagName","code" "In Axon language, Replace a substring in a string","""root toot"".replace(""oo"", ""a"")","code" "In Axon language, Get the current DateTime","now()","code" "In Axon language, Get today's Date","today()","code" "In Axon language, Get yesterday's Date","yesterday()","code" "In Axon language, Add one day to today","today() + 1day","code" "In Axon language, Add seven days to today","today() + 7day","code" "In Axon language, Add one hour to now","now() + 1hr","code" "In Axon language, Create DateTime from Date, Time, and timezone","dateTime(2023-03-14, 0:00, ""New_York"")","code" "In Axon language, Get Date portion of DateTime","now().date","code" "In Axon language, Get Time portion of DateTime","now().time","code" "In Axon language, Get timezone string of DateTime","now().tz","code" "In Axon language, Get year from Date","today().year","code" "In Axon language, Get month from Date","today().month","code" "In Axon language, Get day from Date","today().day","code" "In Axon language, Get hour from DateTime","now().hour","code" "In Axon language, Get minute from DateTime","now().minute","code" "In Axon language, Get second from DateTime","now().second","code" "In Axon language, Get weekday from Date","today().weekday","code" "In Axon language, Check if today is weekend","today().isWeekend","code" "In Axon language, Check if today is weekday","today().isWeekday","code" "In Axon language, Get first day of month","today().firstOfMonth","code" "In Axon language, Get last day of month","today().lastOfMonth","code" "In Axon language, Convert DateTime to different timezone","now().toTimeZone(""UTC"")","code" "In Axon language, Get number of days in Date's month","today().numDaysInMonth","code" "In Axon language, Check if a year is a leap year","isLeapYear(2024)","code" "In Axon language, Check if DateTime is in daylight saving time","now().dst","code" "In Axon language, Get day of year from Date","today().dayOfYear","code" "In Axon language, Get week of year from Date","today().weekOfYear","code" "In Axon language, Get start of week","startOfWeek()","code" "In Axon language, Get milliseconds since Unix epoch","now().toJavaMillis","code" "In Axon language, Convert milliseconds to DateTime","now().toJavaMillis.fromJavaMillis","code" "In Axon language, Get DateSpan for current week","thisWeek()","code" "In Axon language, Get DateSpan for current month","thisMonth()","code" "In Axon language, Get DateSpan for current quarter","thisQuarter()","code" "In Axon language, Get DateSpan for current year","thisYear()","code" "In Axon language, Get DateSpan for past week","pastWeek()","code" "In Axon language, Get DateSpan for past month","pastMonth()","code" "In Axon language, Get DateSpan for past year","pastYear()","code" "In Axon language, Get DateSpan for last week","lastWeek()","code" "In Axon language, Get DateSpan for last month","lastMonth()","code" "In Axon language, Get DateSpan for last quarter","lastQuarter()","code" "In Axon language, Get DateSpan for last year","lastYear()","code" "In Axon language, Create DateSpan with two explicit dates","toDateSpan(2023-01-01..2023-02-28)","code" "In Axon language, Create DateSpan for a day","toDateSpan(2023-02-14)","code" "In Axon language, Create DateSpan for a month","toDateSpan(2023-02)","code" "In Axon language, Create DateSpan for a year","toDateSpan(2023)","code" "In Axon language, Convert DateSpan to Span","toDateSpan(2023-02).toSpan","code" "In Axon language, Get first day of DateSpan","toDateSpan(2024-02).start","code" "In Axon language, Get last day of DateSpan","toDateSpan(2024-02).end","code" "In Axon language, Get number of days in DateSpan","toDateSpan(2024-02).numDays","code" "In Axon language, Iterate the Dates in a DateSpan","eachDay(2024-02) (d) => echo(d)","code" "In Axon language, Iterate the months in a DateSpan","eachMonth(2024) (d) => echo(d)","code" "In Axon language, Get URI name","`/a/b/file.txt`.uriName","code" "In Axon language, Get URI basename","`/a/b/file.txt`.uriBasename","code" "In Axon language, Get URI extension","`/a/b/file.txt`.uriExt","code" "In Axon language, Get URI scheme","`http://host:81/a/b/file.txt`.uriScheme","code" "In Axon language, Get URI host","`http://host:81/a/b/file.txt`.uriHost","code" "In Axon language, Get URI port","`http://host:81/a/b/file.txt`.uriPort","code" "In Axon language, Get URI path string","`http://host:81/a/b/file.txt`.uriPathStr","code" "In Axon language, Get URI path as list","`http://host:81/a/b/file.txt`.uriPath","code" "In Axon language, Check if URI is directory (false)","`/a/b`.uriIsDir","code" "In Axon language, Check if URI is directory (true)","`/a/b/`.uriIsDir","code" "In Axon language, Encode URI","`file name.html`.uriEncode","code" "In Axon language, Decode URI","""file%20name.html"".uriDecode","code" "In Axon language, Create a list","x: [10, 20, 30]","code" "In Axon language, Check if a list is empty","x.isEmpty","code" "In Axon language, Get size of a list","x.size","code" "In Axon language, Access list element by index","x[2]","code" "In Axon language, Slice a list using a range","x[1..-1]","code" "In Axon language, Get first element of a list","x.first","code" "In Axon language, Get index of an element in a list","x.index(30)","code" "In Axon language, Get index of non-existent element in a list","x.index(40)","code" "In Axon language, Check if a list contains an element","x.contains(20)","code" "In Axon language, Fold a list with sum","x.fold(sum)","code" "In Axon language, Check if any element in list matches predicate","x.any v => v < 20","code" "In Axon language, Check if all elements in list match predicate","x.all v => v < 20","code" "In Axon language, Concatenate list elements with separator","x.concat("";"")","code" "In Axon language, Add element to list","x.add(40)","code" "In Axon language, Add all elements to list","x.addAll([40, 50])","code" "In Axon language, Set element in list","x.set(2, 99)","code" "In Axon language, Insert element at index in list","x.insert(0, 99)","code" "In Axon language, Insert all elements at index in list","x.insertAll(0, [88,99])","code" "In Axon language, Remove element at index in list","x.remove(1)","code" "In Axon language, Sort a list","y.sort","code" "In Axon language, Reverse sort a list","y.sortr","code" "In Axon language, Sort a list with custom function","y.sort((a,b)=>a.size<=>b.size)","code" "In Axon language, Iterate over a list","y.each s => echo(s)","code" "In Axon language, Map a list","y.map s => s.size","code" "In Axon language, FlatMap a list","y.flatMap s => [s, s.size]","code" "In Axon language, Find element in list matching predicate","y.find s => s.size == 3","code" "In Axon language, Find all elements in list matching predicate","y.findAll s => s.size <= 4","code" "In Axon language, Move element to new index in list","y.moveTo(""chat"", -1)","code" "In Axon language, Get unique elements in list","[1,1,1,2].unique","code" "In Axon language, Create a dict","d: {dis:""Bob"", bday:1980-06-01}","code" "In Axon language, Check if dict is empty","d.isEmpty","code" "In Axon language, Access dict value by key","d[""bday""]","code" "In Axon language, Access non-existent dict key","d[""foo""]","code" "In Axon language, Access dict value using arrow","d->dis","code" "In Axon language, Check if dict has key","d.has(""bday"")","code" "In Axon language, Check if dict is missing key","d.missing(""bday"")","code" "In Axon language, Get dict keys","d.names","code" "In Axon language, Get dict values","d.vals","code" "In Axon language, Access dict value as property","d.dis","code" "In Axon language, Format date in dict","d.dis(""bday"")","code" "In Axon language, Check if any dict value matches predicate","d.any v => v.isDate","code" "In Axon language, Check if all dict values match predicate","d.all(isDate)","code" "In Axon language, Iterate dict keys and values","d.each((v, k) => echo(k + "": "" + v))","code" "In Axon language, Set key in dict","d.set(""person"", marker())","code" "In Axon language, Remove key from dict","d.remove(""bday"")","code" "In Axon language, Map dict values","d.map v => v + ""!""","code" "In Axon language, Find dict value matching predicate","d.find v => v.isDate","code" "In Axon language, Find all dict values matching predicate","d.findAll v => v.isDate","code" "In Axon language, Create grid from list of dicts","g: [{dis:""Site-A"", area:2300ft²}, {dis:""Site-B"", area:3100ft²}, {dis:""Site-C"", area:1950ft²}].toGrid","code" "In Axon language, Check if grid is empty","g.isEmpty","code" "In Axon language, Get grid size","g.size","code" "In Axon language, Check if grid has column","g.has(""area"")","code" "In Axon language, Check if grid is missing column","g.missing(""foo"")","code" "In Axon language, Get grid meta","g.meta","code" "In Axon language, Get grid columns","g.cols","code" "In Axon language, Get grid column names","g.colNames","code" "In Axon language, Get grid column by name","g.col(""dis"").name","code" "In Axon language, Get grid column meta","g.col(""dis"").meta","code" "In Axon language, Get grid column to list","g.colToList(""area"")","code" "In Axon language, Get first row of grid","g.first","code" "In Axon language, Get last row of grid","g.last","code" "In Axon language, Access grid row by index","g[1]","code" "In Axon language, Access grid row by negative index","g[-2]","code" "In Axon language, Slice grid rows","g[0..1]","code" "In Axon language, Iterate grid rows","g.each(row=>...)","code" "In Axon language, Fold grid column with sum","g.foldCol(""area"", sum)","code" "In Axon language, Check if any grid row matches predicate","g.any r => r->area > 2000ft²","code" "In Axon language, Check if all grid rows match predicate","g.all r => r->area > 2000ft²","code" "In Axon language, Sort grid by column","g.sort(""area"")","code" "In Axon language, Reverse sort grid by column","g.sortr(""area"")","code" "In Axon language, Sort grid with custom function","g.sort((a,b)=>...)","code" "In Axon language, Map grid rows","g.map r => r.set(""area"", r->area.to(1m²))","code" "In Axon language, Find grid row matching predicate","g.find r => r->dis == ""Site-A""","code" "In Axon language, Find all grid rows matching predicate","g.findAll r => r->area < 2000","code" "In Axon language, Grid rows to dict","g.gridRowsToDict(rowToName, r=>r->area)","code" "In Axon language, Grid columns to dict","g.gridColsToDict(c=>c.name,c=>c.name.size)","code" "In Axon language, Add meta to grid","g.addMeta({title:""Sites""})","code" "In Axon language, Add column meta to grid","g.addColMeta(""area"", {dis:""Sq Footage""})","code" "In Axon language, Add column to grid","g.addCol(""areaM2"") r => r->area.to(1m²)","code" "In Axon language, Rename grid column","g.renameCol(""area"", ""sqFt"")","code" "In Axon language, Reorder grid columns","g.reorderCols([""dis"", ""area""])","code" "In Axon language, Remove grid column","g.removeCol(""area"")","code" "In Axon language, Remove multiple grid columns","g.removeCols([""area""])","code" "In Axon language, Keep only specified grid columns","g.keepCols([""dis""])","code" "In Axon language, Add row to grid","g.addRow({dis:""Site-D"", area: 4000ft²})","code" "In Axon language, Add multiple rows to grid","g.addRows([{dis:""Site-D""},{dis:""Site-E""}])","code" "In Axon language, Get unique rows in grid by column","g.unique(""dis"")","code" "In Axon language, Join two grids by column","g.join(h, ""dis"")","code" "In Axon language, Check regex match for entire string","reMatches(r""AHU-(\\d+)"", ""AHU"")","code" "In Axon language, Check regex match for entire string (true)","reMatches(r""AHU-(\\d+)"", ""AHU-10"")","code" "In Axon language, Find substring in a regex","reFind(r""AHU-(\\d+)"", ""Store-2"")","code" "In Axon language, Find substring in a regex (match)","reFind(r""AHU-(\\d+)"", ""Store-2 AHU-3"")","code" "In Axon language, Find all substring groups in a regex","reGroups(r""(Clg|Hgt)-(\\d+)"", ""foo"")","code" "In Axon language, Find all substring groups in a regex (match)","reGroups(r""(Clg|Hgt)-(\\d+)"", ""Hgt-7"")","code" "In Axon language, Find all substring groups in a regex (with brackets)","reGroups(r""(Clg|Hgt)-(\\d+)"", """")","code" "In Axon language, Simple read query for site tag","site","code" "In Axon language, Read query with filter","site and geoCity==""Richmond""","code" "In Axon language, Read equip within a site by rec id","equip and siteRef==xxxx","code" "In Axon language, Read equip within a site by dis tag","equip and siteRef->dis==""Foo""","code" "In Axon language, Read AHUs within a site","ahu and siteRef==xxxx","code" "In Axon language, Read points within a piece of equipment","point and equipRef==xxx","code" "In Axon language, Read history data for points within equipment for a day","readAll(point and equipRef==xxx).hisRead(2009-10-03)","code" "In Axon language, Read history data for points within equipment for a month","readAll(point and equipRef==xxx).hisRead(2009-10)","code" "In Axon language, Read history data for points within equipment for a year","readAll(point and equipRef==xxx).hisRead(2009)","code" "In Axon language, Read history data for points within equipment for past week","readAll(point and equipRef==xxx).hisRead(pastWeek)","code" "In Axon language, Read history data for points within equipment for today","readAll(point and equipRef==xxx).hisRead(today)","code" "In Axon language, Read history data for points within equipment for a date range","readAll(point and equipRef==xxx).hisRead(2009-10-01..2009-10-07)","code" "In Axon language, Find daily max of electrical demand for month","readAll(kw).hisRead(2010-03).hisRollup(max, 1day)","code" "In Axon language, Find all days where daily max exceeded 200 KW","readAll(kw).hisRead(2010-03).hisRollup(max, 1day).hisFindAll(v => v > 200)","code" "In Axon language, Find periods where zone temp was above 75","readAll(zoneTemp).hisRead(pastMonth).hisFindPeriods(v => v > 75)","code" "In Axon language, Find periods in cooling and heating mode and compute intersection","(ahu, dates) => do coolPeriods: read(cool and equipRef==ahu->id) .hisRead(dates).hisFindPeriods(v => v) heatPeriods: read(heat and equipRef==ahu->id) .hisRead(dates).hisFindPeriods(v => v) hisPeriodIntersection([coolPeriods, heatPeriods]) end","code" "In Axon language, Lookup def for site tag","def(^site)","code" "In Axon language, Lookup def for site tag by string","def(""site"")","code" "In Axon language, List all definitions","defs()","code" "In Axon language, List only tag definitions","tags()","code" "In Axon language, Pivot: roll up dur and cost by geoState","pivot(input, { rows: {select:""geoState""}, cells: [{select:""cost""}, {select:""dur""}] })","code" "In Axon language, Pivot: fold cost by avg, min, and max","pivot(input, { rows: {select:""geoState""}, cells: [{select:""cost"", fold:""avg""}, {select:""cost"", fold:""max""}, {select:""cost"", fold:""min""}] })","code" "In Axon language, Pivot: two tags for row grouping","pivot(input, { rows: [{select:""geoState""}, {select:""geoCity""}], cells: {select:""dur""} })","code" "In Axon language, Pivot: column grouping","pivot(input, { rows: {select:""geoState""}, cols: {select:""geoCity""}, cells: {select:""dur""} })","code" "In Axon language, Read daily consumption data for all sites in March","readAll(energy and siteMeter).hisRead(2011-03).hisRollup(sum, 1day)","code" "In Axon language, Read monthly consumption data for all sites in 2010","readAll(energy and siteMeter).hisRead(2010).hisRollup(sum, 1mo)","code" "In Axon language, Read raw demand data for all sites on 1 Apr 2011","readAll(power and siteMeter).hisRead(2011-04-01)","code" "In Axon language, Demand data normalized by area","readAll(power and siteMeter).hisRead(2011-04-01) .energyNormByArea","code" "In Axon language, Demand data normalized by degree-day","readAll(power and siteMeter).hisRead(2011-04-01) .energyNormByDegreeDay","code" "In Axon language, Demand data normalized by area and degree-day","readAll(power and siteMeter).hisRead(2011-04-01) .energyNormByArea .energyNormByDegreeDay","code" "In Axon language, Table of site dis and total kWh consumption for March sorted by kWh","readAll(energy and siteMeter).hisRead(2011-03) .hisRollup(sum, 1mo) .hisFlatten((kw,ts,his) => { dis:his->siteRef->dis, kw:kw }) .sort(""kw"")","code" "In Axon language, Average daily profile of hourly demand peak across last month","readAll(power and siteMeter).hisRead(lastMonth) .hisRollup(max, 1hr) .hisDailyProfile(avg)","code" "In Axon language, Declare a null value","null","code" "In Axon language, Declare a boolean true value","true","code" "In Axon language, Declare a boolean false value","false","code" "In Axon language, Declare a number literal","4","code" "In Axon language, Declare a negative number literal","-91","code" "In Axon language, Declare a number with underscores","10_000","code" "In Axon language, Declare a number with a unit","9.23kg","code" "In Axon language, Declare a number in scientific notation","5.4e-45","code" "In Axon language, Declare a number with a temperature unit","74.2°F","code" "In Axon language, Declare a number with a duration unit","5min","code" "In Axon language, Declare a string literal","""hello""","code" "In Axon language, Declare a URI literal","`io/sites.csv`","code" "In Axon language, Declare a date literal","2010-01-27","code" "In Axon language, Declare a time literal","3:45","code" "In Axon language, Declare a time literal with seconds","08:12:05","code" "In Axon language, Declare a range of numbers","0..100","code" "In Axon language, Declare a range of dates","2010-01-01..2010-01-31","code" "In Axon language, Declare a date range using YYYY-MM","2008-02","code" "In Axon language, Declare a single quote string with escape","""line 1 \\n line 2""","code" "In Axon language, Declare a single quote string with embedded quotes","""embedded \\""quotes\\""!""","code" "In Axon language, Declare a triple quote multi-line string","""""""This is a ""multi-line"" triple quoted string""""""","code" "In Axon language, Declare a raw string literal","r""\\foo\\""","code" "In Axon language, Declare a string with escaped dollar sign","""\\$100""","code" "In Axon language, Declare an empty list","[]","code" "In Axon language, Declare a single item list","[6]","code" "In Axon language, Declare a list with multiple items","[1, 2, 3]","code" "In Axon language, Declare a mixed type list","[4, ""four""]","code" "In Axon language, Declare an empty dictionary","{}","code" "In Axon language, Declare a dictionary with a key and number value","{foo:6}","code" "In Axon language, Declare a dictionary with an expression as value","{foo:2+3}","code" "In Axon language, Declare a dictionary with a marker value","{foo}","code" "In Axon language, Declare a dictionary with a remove value","{-foo}","code" "In Axon language, Declare a dictionary with multiple key-value pairs","{n:""Bob"",age:35}","code" "In Axon language, Declare a dictionary with a string literal key","{""not tag""}","code" "In Axon language, Addition of two numbers","3 + 4","code" "In Axon language, Subtraction of two numbers","7 - 2","code" "In Axon language, Multiplication of two numbers","5 * 6","code" "In Axon language, Division of two numbers","8 / 2","code" "In Axon language, Equality comparison","3 == 4","code" "In Axon language, Inequality comparison","4 != 4","code" "In Axon language, Less than comparison","3 < 5","code" "In Axon language, Greater than comparison","3 > 5","code" "In Axon language, Three-way comparison","3 <=> 5","code" "In Axon language, Boolean not operator","not true","code" "In Axon language, Boolean and operator","true and false","code" "In Axon language, Boolean or operator","true or false","code" "In Axon language, Indexing a list","[1,2,3][0]","code" "In Axon language, Slicing a list","[1,2,3][1..2]","code" "In Axon language, Indexing a dictionary by key","{foo:6}[""foo""]","code" "In Axon language, Trap operator on a dictionary","{foo:6}->foo","code" "In Axon language, Define a variable","a: 5","code" "In Axon language, Re-assign a variable","a = a + 1","code" "In Axon language, Define a lambda with one parameter","x => x * x","code" "In Axon language, Define a lambda with multiple parameters","(x, y) => x + y","code" "In Axon language, Define a named function","add: (x, y) => x + y","code" "In Axon language, Call a function with arguments","add(2, 3)","code" "In Axon language, Define a function with default parameter","f: (a, b:2) => a + b","code" "In Axon language, Partial application with underscore","inc: add(_, 1)","code" "In Axon language, Block expression with do and end","do a: 1 b: 2 a + b end","code" "In Axon language, If expression with true clause","if (5.isOdd) ""odd""","code" "In Axon language, If expression with else clause","if (4.isOdd) ""odd"" else ""even""","code" "In Axon language, Throw an exception with a string","throw ""deep doo-doo!""","code" "In Axon language, Try/catch expression","try doSomethingDangerous() catch handleProblem()","code" "In Axon language, Try/catch with exception variable","try doSomethingDangerous() catch (ex) handleProblem(ex)","code" "In Axon language, Define a component","defcomp","code" "In Axon language, Evaluate an expression within a specific locale using localeUse.","localeUse(""de"", today().format)","code" "In Axon language, Parse a date string in German locale using localeUse.","localeUse(""de"", parseDate(""01 Mär 2021"", ""DD MMM YYYY""))","code" "In Axon language, Get a character from a string at a specific index","str[2]","code" "In Axon language, Get a slice of a string using a range","str[1..3]","code" "In Axon language, Get an item from a list at a specific index","list[3]","code" "In Axon language, Get a slice of a list using a range","list[0..2]","code" "In Axon language, Get a value from a dictionary by key","dict[""key""]","code" "In Axon language, Get a row from a grid at a specific index","grid[1]","code" "In Axon language, Get a range of rows from a grid","grid[0..2]","code" "In Axon language, Convert a date range to a DateSpan using toDateSpan.","toDateSpan(2010-07-01..2010-07-03)","code" "In Axon language, Convert a date and number of days to a DateSpan using toDateSpan.","toDateSpan(2010-07-01..60day)","code" "In Axon language, Convert a year and month string to a DateSpan using toDateSpan.","toDateSpan(2010-07)","code" "In Axon language, Convert a year string to a DateSpan using toDateSpan.","toDateSpan(2010)","code" "In Axon language, Convert a function returning a date range to a DateSpan using toDateSpan.","toDateSpan(pastWeek)","code" "In Axon language, List conjunct definitions in the context namespace as Def[]","context.defs","code" "In Axon language, Format feature namespace of definitions as feature:name","feature:name","code" "In Axon language, Declare a scalar value in Axon","a:54","code" "In Axon language, Declare a Unicode string in Axon","b:""Hello, 世界""","code" "In Axon language, Return today's Date according to context's time zone","nowDate()","code" "In Axon language, Convert a string to uppercase in Axon.","upper(""cat"")","code" "In Axon language, Convert a mixed-case string to uppercase in Axon.","upper(""Cat"")","code" "In Axon language, Convert a character code to uppercase character in Axon.","upper(97).toChar","code" "In Axon language, Declare a feature namespace definition in Axon","feature:name","code" "In Axon language, Return if an object is a boolean type","feature:name","code" "In Axon language, Add column meta-data to a grid using addColMeta","addColMeta(grid, name, meta)","code" "In Axon language, Convert the current DateTime to the 'Chicago' timezone.","now().toTimeZone(""Chicago"")","code" "In Axon language, Convert the current DateTime to the 'UTC' timezone.","now().toTimeZone(""UTC"")","code" "In Axon language, Move an item to the beginning of a list using moveTo.","[10, 11, 12].moveTo(11, 0)","code" "In Axon language, Move an item to the last position of a list using moveTo with a negative index.","[10, 11, 12].moveTo(11, -1)","code" "In Axon language, Get the URI extension of a Uri as a string or null","uriExt(""http://example.com/file.txt"")","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:myFunction()","code" "In Axon language, Return if an object is a dict type","feature:name","code" "In Axon language, Keep specific columns from a grid","readAll(site).keepCols([""id"", ""area""])","code" "In Axon language, Join a list of grids into a single grid","join([grid1, grid2])","code" "In Axon language, Call a function using feature namespace","feature:name()","code" "In Axon language, Find the first match of a regular expression in a string using reFind.","reFind(r""\\d+"", ""x123y"")","code" "In Axon language, Return null if no matches are found using reFind.","reFind(r""\\d+"", ""xyz"")","code" "In Axon language, Convert a string to a Span using the current timezone","toSpan(""2024-06-01"")","code" "In Axon language, Convert a string to a Span using a given timezone","toSpan(""2024-06-01"", ""New_York"")","code" "In Axon language, Convert a DateTime to a Span","toSpan(2024-06-01T12:00:00)","code" "In Axon language, Convert a Date to a Span","toSpan(2024-06-01)","code" "In Axon language, Convert a range of two DateTimes to a Span","toSpan(2024-06-01T00:00:00..2024-06-02T00:00:00)","code" "In Axon language, Convert a DateTime and a Date to a Span","toSpan(2024-06-01T12:00:00..2024-06-02)","code" "In Axon language, Convert a Date and a DateTime to a Span","toSpan(2024-06-01..2024-06-02T12:00:00)","code" "In Axon language, Convert a DateSpan to a Span","toSpan(dateSpan(2024-06-01, 2024-06-02))","code" "In Axon language, Convert a DateSpan to a Span using a given timezone","toSpan(dateSpan(2024-06-01, 2024-06-02), ""UTC"")","code" "In Axon language, List all functions declared in the current project.","funcs()","code" "In Axon language, Find functions matching the filter 'sparkRule'.","funcs(sparkRule)","code" "In Axon language, Convert an arbitrary string to a safe tag name using Etc.toTagName","Etc.toTagName(""My String Example"")","code" "In Axon language, Format a feature namespace definition as feature:name","feature:name","code" "In Axon language, Add a list of rows to the end of a grid using addRows.","readAll(site).addRows(readAll(equip))","code" "In Axon language, Declare a scalar value","a:54","code" "In Axon language, Declare a Unicode string","s:""Hello, 世界""","code" "In Axon language, Get the path segments of a Uri as a list of Strs","feature:name(uri)","code" "In Axon language, Return the Number representation positive infinity","inf()","code" "In Axon language, Extract the date portion from a DateTime value.","now().date","code" "In Axon language, Construct a date instance from year, month, and day.","date(2010, 12, 1)","code" "In Axon language, Check if a string starts with a specific substring","""hi there"".startsWith(""hi"")","code" "In Axon language, Check if a string does not start with a specific substring","""hi there"".startsWith(""foo"")","code" "In Axon language, Parse a string into a number using parseNumber.","parseNumber(""123"")","code" "In Axon language, Parse a string with a unit into a number using parseNumber.","parseNumber(""123kW"")","code" "In Axon language, Parse a floating point string and format the result.","parseNumber(""123.567"").format(""#.000"")","code" "In Axon language, Construct a DateTime from a date, time, and timezone.","dateTime(d, t, tz)","code" "In Axon language, Construct a DateTime from a date and time using the system default timezone.","dateTime(d, t, null)","code" "In Axon language, Convert a list of dictionaries to a grid.","[{dis:""Bob"", age:30}, {dis:""Ann"", age:40}, {dis:""Dan"", age:50}].toGrid","code" "In Axon language, Convert a scalar value to a 1x1 grid.","42.toGrid","code" "In Axon language, Convert a dictionary to a grid.","{dis:""Eve"", age:25}.toGrid","code" "In Axon language, Convert a list of non-dictionaries to a one-column grid.","[1, 2, 3].toGrid","code" "In Axon language, Fold the values of a column in a grid using a folding function.","readAll(site).foldCol(""area"", sum)","code" "In Axon language, Call a function by its string name with no arguments.","call(""today"")","code" "In Axon language, Call a function by its string name with arguments.","call(""replace"", [""hi there"", ""hi"", ""hello""])","code" "In Axon language, Call a function by its string name with a single argument.","call(""parseDate"", [""2021-03-15""])","code" "In Axon language, Call a function by its string name with multiple arguments.","call(""parseDate"", [""15-Mar-21"", ""DD-MMM-YY""])","code" "In Axon language, Call a function by passing a function reference and arguments.","call(parseDate, [""15-Mar-21"", ""DD-MMM-YY""])","code" "In Axon language, Call a partially applied function with arguments.","call(parseDate(_, ""DD-MMM-YY""), [""15-Mar-21""])","code" "In Axon language, Return if an object is a Date type","feature:name(obj)","code" "In Axon language, parse a date string in the format 'D-MMM-YY'","parseDate(""7-Feb-23"", ""D-MMM-YY"")","code" "In Axon language, parse a date string in the format 'DD/MM/YY'","parseDate(""07/02/23"", ""DD/MM/YY"")","code" "In Axon language, parse a date string in the format 'D MMMM YYYY'","parseDate(""7 february 2023"", ""D MMMM YYYY"")","code" "In Axon language, parse a date string in the format 'YYMMDD'","parseDate(""230207"", ""YYMMDD"")","code" "In Axon language, Declare a scalar value","a:42","code" "In Axon language, Declare a Unicode string","b:""Hello, 世界""","code" "In Axon language, wrap a value in a list if it is not already a list","[val]","code" "In Axon language, reference a feature namespace definition","feature:name","code" "In Axon language, Declare a DateSpan for the previous month from day 1 to day 28-31","1..28-31","code" "In Axon language, Use a feature namespace in the format feature:name","feature:name","code" "In Axon language, Use parseSearch to filter results with a glob pattern","readAll(parseSearch(""RTU-1""))","code" "In Axon language, Use parseSearch to filter points with a glob pattern containing a wildcard","readAll(point).filter(parseSearch(""RTU* Fan""))","code" "In Axon language, Get the meta-data from a grid as a dict","read(temp).hisRead(today).meta","code" "In Axon language, Get the meta-data from a column as a dict","read(temp).hisRead(today).col(""ts"").meta","code" "In Axon language, Get the last day of a given date's month.","2009-10-28.lastOfMonth","code" "In Axon language, Find the index of a substring in a string.","index('hello world', 'world')","code" "In Axon language, Find the index of an item in a list.","index([1, 2, 3, 2], 2)","code" "In Axon language, Find the index of a substring in a string starting from a specific offset.","index('banana', 'a', 2)","code" "In Axon language, Find the index of an item in a list starting from a specific offset.","index([1, 2, 3, 2], 2, 2)","code" "In Axon language, Find the index of a substring in a string using a negative offset.","index('hello world', 'o', -3)","code" "In Axon language, Return null if the substring is not found in the string.","index('hello', 'z')","code" "In Axon language, Get the current time as nanosecond ticks since 1 Jan 2000 UTC","nowTicks()","code" "In Axon language, Return if an object is not null","if (obj != null) return true","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Add all items to the end of a list and return a new list","list->addAll(items)","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Declare a scalar value","a:54","code" "In Axon language, Declare a Unicode string","name:""Axon Language""","code" "In Axon language, Get the type of a value as a string","debugType(42)","code" "In Axon language, Use debugType to check the type of a string value","debugType('hello')","code" "In Axon language, Iterate over each day in a specific date range using eachDay.","f: day => echo(day) eachDay(2010-07-01..2010-07-03, f)","code" "In Axon language, Iterate over each day in a specific month using eachDay.","f: day => echo(day) eachDay(2010-07, f)","code" "In Axon language, Iterate over each day in the past week using eachDay.","f: day => echo(day) eachDay(pastWeek, f)","code" "In Axon language, Get the longitude of a Coord as a number","feature:longitude","code" "In Axon language, DateSpan for this month as 1st..28-31","1st..28-31","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Declare an overridable external function in Axon.","overridable def myFunc() {}","code" "In Axon language, Sort a grid by row display name.","readAll(site).sortDis","code" "In Axon language, Reorder columns in a grid using a specified list of column names.","reorderCols(grid, [""name"", ""age"", ""foo""])","code" "In Axon language, Move 'name' column to the first position and 'foo' to the last in a grid.","cols := grid.colNames.moveTo(""name"", 0).moveTo(""foo"", -1)","code" "In Axon language, Get the start value of a DateSpan","start(dateSpan)","code" "In Axon language, Get the start value of a Span","start(span)","code" "In Axon language, Get the start value of a range","start(range)","code" "In Axon language, Use feature namespace in a definition","feature:name","code" "In Axon language, Add a new column named areaMeters to a grid using addCol.","readAll(site).addCol(""areaMeters"") s => s->area.to(1m²)","code" "In Axon language, Add a new column named areaMeters with display metadata using addCol.","readAll(site).addCol({name:""areaMeters"", dis:""Area Meters""}) s => s->area.to(1m²)","code" "In Axon language, parse a string into an integer","parseInt(""123"")","code" "In Axon language, parse a hexadecimal string into an integer","parseInt(""afe8"", 16)","code" "In Axon language, parse a binary string into an integer","parseInt(""10010"", 2)","code" "In Axon language, List tag definitions in the context namespace as Def[]","contextDefs: context->defs","code" "In Axon language, Feature namespace of definitions formatted as feature:name","featureDefs: defs->map(d=>""feature:"" + d->name)","code" "In Axon language, Declare a DateSpan for this year from January 1st to December 31st","Jan-1..Dec-31","code" "In Axon language, Reference a feature using the feature namespace format","feature:name","code" "In Axon language, Number of whole days in a span","span.days","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Find the first string longer than 3 characters in a list.","[""ape"", ""bat"", ""charlie"", ""dingo""].find(x => x.size > 3)","code" "In Axon language, Find the first odd number in a list.","[10, 4, 3, 7].find(isOdd)","code" "In Axon language, Get the number of days in the current month","numDaysInMonth()","code" "In Axon language, Get the number of days in January of the current year","numDaysInMonth(1)","code" "In Axon language, Get the number of days in June of the current year","numDaysInMonth(6)","code" "In Axon language, Get the number of days in February of the current year","numDaysInMonth(2)","code" "In Axon language, Get the number of days in February 2012","numDaysInMonth(2012-02-13)","code" "In Axon language, Format a number with default formatting.","123.456kW.format","code" "In Axon language, Format a number with a custom pattern.","123.456kW.format(""#.0"")","code" "In Axon language, Format today's date with a specific pattern.","today().format(""D-MMM-YYYY"")","code" "In Axon language, Format today's date with a full month name.","today().format(""DDD MMMM YYYY"")","code" "In Axon language, Format the current date and time with day, month, hour, and minute.","now().format(""D-MMM hh:mm"")","code" "In Axon language, Format the current date and time with day, month, year, hour, and am/pm.","now().format(""DD/MM/YY k:mmaa"")","code" "In Axon language, Reduce a list to its sum using reduce.","[2, 5, 3].reduce(0, (acc, val)=>acc+val)","code" "In Axon language, Reduce a list to its product using reduce.","[2, 5, 3].reduce(1, (acc, val)=>acc*val)","code" "In Axon language, Trim whitespace from the beginning of a string in Axon.",""" abc "".trimStart","code" "In Axon language, Trim whitespace from the beginning of a string that has no leading whitespace in Axon.","""abc"".trimStart","code" "In Axon language, Check if a string matches a regular expression in Axon.","reMatches(r""\\d+"", ""x123y"")","code" "In Axon language, Check if a string consisting only of digits matches a regular expression in Axon.","reMatches(r""\\d+"", ""123"")","code" "In Axon language, Compute the great-circle distance between two coordinates using coordDist.","coordDist(c1, c2)","code" "In Axon language, Get the first item from a list.","first([1, 2, 3])","code" "In Axon language, Get the first row from a grid.","first($grid)","code" "In Axon language, Get the first item from a stream.","first($stream)","code" "In Axon language, Call the specified function the given number of times passing the counter.","feature:name(5, fn(x) { /* function body */ })","code" "In Axon language, Return yesterday's Date according to context's time zone","yesterday()","code" "In Axon language, Get the week number of the year from a DateTime value.","weekOfYear(someDateTime)","code" "In Axon language, Get the week number of the year from a Date value, specifying Monday as the start of the week.","weekOfYear(someDate, 1)","code" "In Axon language, Return if an object is a number type","feature:name","code" "In Axon language, Convert 10 kilowatt-hours to BTU using a number unit.","10kWh.to(1BTU)","code" "In Axon language, Convert 10 kilowatt-hours to BTU using a string unit.","10kWh.to(""BTU"")","code" "In Axon language, Convert 75 degrees Fahrenheit to Celsius using a number unit.","75°F.to(1°C)","code" "In Axon language, Convert 75 degrees Fahrenheit to Celsius using the to function.","to(75°F, 1°C)","code" "In Axon language, Return if an integer is an odd number","isOdd(n) => n % 2 == 1","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Return if an object is a function type","feature:name","code" "In Axon language, Get the path of a Uri as a string","feature:name","code" "In Axon language, Convert a filter expression to a function using filterToFunc","filterToFunc(area > 10_000)","code" "In Axon language, Use filterToFunc with findAll to filter dicts with 'equip' tag","list.findAll(filterToFunc(equip))","code" "In Axon language, Use filterToFunc with findAll to filter rows with 'area' tag over 10,000","grid.findAll(filterToFunc(area > 10_000))","code" "In Axon language, Decode a percent-encoded URI string using uriDecode.","""foo%20bar"".uriDecode","code" "In Axon language, Decode a URI string with plus sign in the query section using uriDecode.","""foo+bar"".uriDecode","code" "In Axon language, Parse a string into a standardized unit name using parseUnit.","parseUnit(""percent"")","code" "In Axon language, Parse a string representing a percent sign into a standardized unit name.","parseUnit(""%"")","code" "In Axon language, Get the first day of a given date's month.","2009-10-28.firstOfMonth","code" "In Axon language, Get the number of hours in a day for a given DateTime","hoursInDay(dt)","code" "In Axon language, Safely get a character from a string by index using getSafe","getSafe('hello', 2)","code" "In Axon language, Safely get a slice from a string using getSafe with a range","getSafe('hello', 1..3)","code" "In Axon language, Safely get an item from a list by index using getSafe","getSafe([10, 20, 30], 5)","code" "In Axon language, Safely get a slice from a list using getSafe with a range","getSafe([10, 20, 30], 1..4)","code" "In Axon language, Safely get a row from a grid by index using getSafe","getSafe([[1,2],[3,4]], 1)","code" "In Axon language, Safely get a range of rows from a grid using getSafe with a range","getSafe([[1,2],[3,4],[5,6]], 0..2)","code" "In Axon language, Check if a given Date or DateTime falls on Saturday or Sunday","feature:name(date)","code" "In Axon language, Create a DateSpan for the last 7 days.","today-7days..today","code" "In Axon language, Reference a feature using the feature namespace format.","feature:name","code" "In Axon language, Return unique items from a list","[1, 1, 2, 2].unique","code" "In Axon language, Return unique values from a grid based on a single column","grid.unique(""geoState"")","code" "In Axon language, Return unique values from a grid based on multiple columns","grid.unique([""geoCity"", ""geoState""])","code" "In Axon language, Insert a list of items at the given index in Axon.","insert([1,2,5], 2, [3,4])","code" "In Axon language, Fold a list into its maximum value using a built-in folding function.","[1, 2, 3, 4].fold(max)","code" "In Axon language, Fold a list into its average value using a built-in folding function.","[1, 2, 3, 4].fold(avg)","code" "In Axon language, Fold a list containing na() using the sum folding function.","[1, 2, na(), 3].fold(sum)","code" "In Axon language, Define a custom fold function to calculate the average of a list.","average: (val, acc) => do if (val == foldStart()) return {sum:0, count:0} if (val == foldEnd()) return acc->sum / acc->count if (val == na()) return na() return {sum: acc->sum + val, count: acc->count + 1} end","code" "In Axon language, Find all numbers in a string using a regular expression.","reFindAll(r""-?\\d+\\.?\\d*"", ""foo, 123, bar, 456.78, -9, baz"")","code" "In Axon language, Find all digit sequences in a string using a regular expression.","reFindAll(r""\\d+"", ""foo, bar, baz"")","code" "In Axon language, DateSpan for this week as sun..sat","sun..sat","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Pad a string to the left with zeros to a width of 3.","""3"".padl(3, ""0"")","code" "In Axon language, Pad a string to the left with zeros to a width of 2.","""123"".padl(2, ""0"")","code" "In Axon language, Get the latitude of a Coord as a number","feature:lat","code" "In Axon language, Return if an object is a number type with a time unit","time unit","code" "In Axon language, Lookup a def by its symbol name","def(""mySymbol"")","code" "In Axon language, Lookup a def by its symbol name with checked flag set to false","def(""mySymbol"", checked: false)","code" "In Axon language, Return if an object is a str type","feature:name","code" "In Axon language, Declare a feature namespace definition in Axon","feature:name","code" "In Axon language, Construct a decoded XStr instance","XStr","code" "In Axon language, Reference a feature namespace definition formatted as feature:name","feature:name","code" "In Axon language, Return number of items in a string","feature:name(str)","code" "In Axon language, Return number of items in a list","feature:name(list)","code" "In Axon language, Return number of items in a grid","feature:name(grid)","code" "In Axon language, Add columns from one grid to another using addCols.","[{a:0, b:2}, {a:1, b:3}].toGrid.addCols({c:4}.toGrid)","code" "In Axon language, Combine two grids by columns using addCols.","readAll(rtu).addCols(readAll(meter))","code" "In Axon language, Convert a DateTime to milliseconds since Unix epoch","toJavaMillis(dt)","code" "In Axon language, Get hour of day as integer between 0 to 23 from time","feature:name(time)","code" "In Axon language, Get hour of day as integer between 0 to 23 from datetime","feature:name(datetime)","code" "In Axon language, Encode a string for use in a URI","`foo bar`.uriEncode","code" "In Axon language, Get the column names from a table as a list of strings","readAll(site).colNames","code" "In Axon language, Access a feature in the feature namespace using feature:name format","feature:name","code" "In Axon language, Check if a character is a digit in base 10","isDigit(""5"".get(0))","code" "In Axon language, Check if a character is a digit in base 10 (non-digit character)","isDigit(""A"".get(0))","code" "In Axon language, Check if a character is a digit in base 16","isDigit(""A"".get(0), 16)","code" "In Axon language, Return if the two numbers have the same unit","feature:name(a, b)","code" "In Axon language, Truncate a stream after a given limit is reached","stream.truncate(limit)","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:myFeature","code" "In Axon language, Get a column as a list of the cell values ordered by row.","readAll(site).colToList(""dis"")","code" "In Axon language, Use min to compare two numbers and return the smaller one.","min(7, 4)","code" "In Axon language, Use fold with min to find the smallest number in a list.","[7, 2, 4].fold(min)","code" "In Axon language, Remove a column from a grid using removeCol","removeCol(myGrid, ""colName"")","code" "In Axon language, Convert a unicode char number into a single char string","toChar(65)","code" "In Axon language, Map a list by adding ten to each number.","[1, 2, 3].map(v => v+10)","code" "In Axon language, Map a list of strings to uppercase.","[""ape"", ""bee"", ""cat""].map(upper)","code" "In Axon language, Map a dictionary by adding ten to each value.","{a:1, b:2, c:3}.map(v => v+10)","code" "In Axon language, Map a grid to create a new grid with only 'dis' and 'area' columns.","readAll(site).map(s => {dis:s->dis, area:s->area})","code" "In Axon language, Clamp a value within a range using clamp.","14.clamp(10, 20)","code" "In Axon language, Clamp a value below the minimum using clamp.","3.clamp(10, 20)","code" "In Axon language, Clamp a value above the maximum using clamp.","73.clamp(10, 20)","code" "In Axon language, Clamp a temperature value with unitless min and max using clamp.","45°F.clamp(60, 80)","code" "In Axon language, Get the project name from an absolute ref formatted as 'p:proj:r:xxx'.","refProjName(@p:demo:r:xxx)","code" "In Axon language, Call refProjName with a ref not containing a project, expecting an exception.","refProjName(@r:xxx)","code" "In Axon language, Call refProjName with a ref not containing a project and checked set to false, expecting null.","refProjName(@r:xxx, false)","code" "In Axon language, Set a collection item and return a new collection","feature:name","code" "In Axon language, Check if a Grid has a specific column","has(myGrid, ""colName"")","code" "In Axon language, Check if a Dict has a non-null value for a given key","has(myDict, ""keyName"")","code" "In Axon language, Check if a timestamp occurred within this week","ts.occurred(thisWeek)","code" "In Axon language, Check if a timestamp occurred within the past month","ts.occurred(pastMonth())","code" "In Axon language, Check if a timestamp occurred between two specific dates","ts.occurred(2010-01-01..2010-01-15)","code" "In Axon language, Iterate over a list and print each value with its index.","each([10, 20, 30], (val, i) => print(val, i))","code" "In Axon language, Iterate over a dictionary and print each value with its key.","each([a:1, b:2], (val, name) => print(val, name))","code" "In Axon language, Iterate over a string and print each character code with its index.","each(""abc"", (char, i) => print(char, i))","code" "In Axon language, Iterate over a range from 0 to 2 and print each integer.","each(0..2, (i) => print(i))","code" "In Axon language, Return absolute value of a number","abs(-5)","code" "In Axon language, Add item to the end of a list","add([1, 2, 3], 4)","code" "In Axon language, Add all items to the end of a list","addAll([1, 2], [3, 4])","code" "In Axon language, Return if all items in a list match the test function","all([1, 2, 3], x => x > 0)","code" "In Axon language, Return if any items in a list match the test function","any([1, 2, 3], x => x == 2)","code" "In Axon language, Set the unit of a number","as(100, ""kg"")","code" "In Axon language, Fold multiple values into their average","avg([1, 2, 3, 4])","code" "In Axon language, Capitalize the first character of a string","capitalize(""hello"")","code" "In Axon language, Clamp a number between min and max","clamp(10, 0, 5)","code" "In Axon language, Concatenate a list of items into a string","concat([""a"", ""b"", ""c""])","code" "In Axon language, Return if a string ends with the specified string","endsWith(""hello"", ""lo"")","code" "In Axon language, Return if two values are equivalent","equals(1, 1)","code" "In Axon language, Evaluate an Axon string expression","eval(""1 + 2"")","code" "In Axon language, Filter a collection of dicts","filter([{a:1}, {a:2}], x => x.a == 2)","code" "In Axon language, Find the first matching item in a list","find([1, 2, 3], x => x > 1)","code" "In Axon language, Get the first item from a collection","first([1, 2, 3])","code" "In Axon language, Flatten a list to a single level","flatten([[1, 2], [3, 4]])","code" "In Axon language, Fold a list into a single value using a folding function","fold([1, 2, 3], 0, (acc, x) => acc + x)","code" "In Axon language, Format an object using the specified format pattern","format(1234.56, ""#,###.00"")","code" "In Axon language, Get the hour of day from a datetime","hour(dateTime(2023, 6, 1, 15, 0, 0))","code" "In Axon language, Return if an object is a boolean type","isBool(true)","code" "In Axon language, Return if an object is a date type","isDate(parseDate(""2023-06-01""))","code" "In Axon language, Return if an object is a dict type","isDict({a: 1})","code" "In Axon language, Return if an object is a list type","isList([1, 2, 3])","code" "In Axon language, Return if an object is a number type","isNumber(42)","code" "In Axon language, Return if an object is a str type","isStr(""hello"")","code" "In Axon language, Return if an object is null","isNull(null)","code" "In Axon language, Return if an object is not null","isNonNull(5)","code" "In Axon language, Get the last item from a collection","last([1, 2, 3])","code" "In Axon language, Merge two dicts together","merge({a:1}, {b:2})","code" "In Axon language, Get the minimum of two numbers","min(3, 5)","code" "In Axon language, Get the maximum of two numbers","max(3, 5)","code" "In Axon language, Pad a string to the left","padl(""hi"", 5, ""*"")","code" "In Axon language, Pad a string to the right","padr(""hi"", 5, ""*"")","code" "In Axon language, Parse a string into a date","parseDate(""2023-06-01"")","code" "In Axon language, Parse a string into a DateTime","parseDateTime(""2023-06-01T12:00:00Z"")","code" "In Axon language, Parse a string into a float","parseFloat(""3.14"")","code" "In Axon language, Parse a string into an integer","parseInt(""42"")","code" "In Axon language, Parse a string into a boolean","parseBool(""true"")","code" "In Axon language, Remove an item from a collection","remove([1, 2, 3], 2)","code" "In Axon language, Replace all occurrences of a substring","replace(""banana"", ""a"", ""o"")","code" "In Axon language, Return the number of items in a list","size([1, 2, 3])","code" "In Axon language, Sort a list","sort([3, 1, 2])","code" "In Axon language, Reverse sort a list","sortr([1, 2, 3])","code" "In Axon language, Split a string by a separator","split(""a,b,c"", "","")","code" "In Axon language, Sum a list of numbers","sum([1, 2, 3])","code" "In Axon language, Convert an object to its string representation","toStr(123)","code" "In Axon language, Trim whitespace from a string","trim("" hello "")","code" "In Axon language, Convert a string to upper case","upper(""hello"")","code" "In Axon language, Convert a string to lower case","lower(""HELLO"")","code" "In Axon language, Get today's date","today()","code" "In Axon language, Get yesterday's date","yesterday()","code" "In Axon language, Return current DateTime","now()","code" "In Axon language, declare a DateSpan for the current 3 month quarter","dateSpanQuarter()","code" "In Axon language, reference a feature using the feature namespace format","feature:name","code" "In Axon language, Join two grids by a column name using func:join","join(a, b, joinColName)","code" "In Axon language, Return if an object is a Time type","feature:name","code" "In Axon language, Convert milliseconds since Unix epoch to a DateTime using fromJavaMillis.","fromJavaMillis(1622505600000)","code" "In Axon language, Convert milliseconds since Unix epoch to a DateTime with a specified timezone using fromJavaMillis.","fromJavaMillis(1622505600000, ""UTC"")","code" "In Axon language, Create a new stream for the cell values of the given column.","feature:name","code" "In Axon language, Declare a DateSpan for the last 30 days","today-30days..today","code" "In Axon language, Reference a feature using the feature namespace format","feature:name","code" "In Axon language, Construct a Coord from two Numbers in decimal degrees","feature:name","code" "In Axon language, declare a dict with typing information using marker","marker myDict: [name: Str, age: Int]","code" "In Axon language, Concatenate a list of numbers into a string using concat.","[1, 2, 3].concat","code" "In Axon language, Concatenate a list of numbers into a string with a comma separator using concat.","[1, 2, 3].concat("","")","code" "In Axon language, Get the marker value singleton Marker.val","Marker.val","code" "In Axon language, Reference a feature namespace definition formatted as feature:name","feature:name","code" "In Axon language, Return if an object is a Uri type","feature:name","code" "In Axon language, get the NA not-available singleton","NA.val","code" "In Axon language, use a feature namespace of definitions","feature:name","code" "In Axon language, Return the maximum of two numbers using max.","max(7, 4)","code" "In Axon language, Find the largest number in a list using fold and max.","[7, 2, 4].fold(max)","code" "In Axon language, parse a string 'true' into a boolean","parseBool(""true"")","code" "In Axon language, parse an invalid string 'bad' into a boolean with checked set to false","parseBool(""bad"", false)","code" "In Axon language, Get the current DateTime in the context's time zone","now()","code" "In Axon language, Get the name of the first column from a collection of columns.","readAll(site).cols.first.name","code" "In Axon language, Access a feature definition using the feature namespace format.","feature:name","code" "In Axon language, Check if a character is a whitespace character using isSpace.","isSpace("" "".get(0))","code" "In Axon language, Check if a character is not a whitespace character using isSpace.","isSpace(""x"".get(0))","code" "In Axon language, Check if a newline character is whitespace using isSpace.","isSpace(""\\n"".get(0))","code" "In Axon language, Indicate an error condition with a display message","errTrace dis","code" "In Axon language, Label a dict with typing information using Marker","Marker","code" "In Axon language, Get a column by its name from a grid.","col(grid, name)","code" "In Axon language, Get a column by its name with checked flag set to true.","col(grid, name, true)","code" "In Axon language, Get meta data for a given column.","read(temp).hisRead(today).col(""ts"").meta","code" "In Axon language, Return if given string is an Axon keyword","isKeyword(""if"")","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:myFeature","code" "In Axon language, Get the host Uri as a string or null","feature:name","code" "In Axon language, Parse a time string in 24-hour format.","parseTime(""14:30"", ""h:mm"")","code" "In Axon language, Parse a time string with AM/PM.","parseTime(""2:30pm"", ""k:mma"")","code" "In Axon language, Parse a time string with seconds and AM/PM.","parseTime(""2:30:00pm"", ""k:mm:ssa"")","code" "In Axon language, Get the weekday as an integer from a Date value","weekday(someDate)","code" "In Axon language, Get the weekday as an integer from a DateTime value","weekday(someDateTime)","code" "In Axon language, Get the last item from a list","last([1, 2, 3])","code" "In Axon language, Get the last item from a grid","last([[1, 2], [3, 4]])","code" "In Axon language, Get the last item from a stream","last(stream(1, 2, 3))","code" "In Axon language, Get the name (last item) from a Uri","feature:name","code" "In Axon language, Set the unit of a number using another unit number.","75°F.as(1°C)","code" "In Axon language, Set the unit of a number using a unit string.","75°F.as(""°C"")","code" "In Axon language, Return if an object is null","isNull(obj)","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Get the scheme of a Uri as a string or null","feature:name","code" "In Axon language, Filter a list of dicts to include only those where v >= 3","[{v:1}, {v:2}, {v:3}, {v:4}].filter(v >= 3)","code" "In Axon language, Filter a grid to return only rows where meter is true","readAll(equip).filter(meter)","code" "In Axon language, Filter columns of a grid to include only those with kind equal to 'Bool'","read(ahu).toPoints.hisRead(yesterday).cols.filter(kind==""Bool"")","code" "In Axon language, Filter a stream of dicts where siteMeter, elec, and meter are true, then collect the results","readAllStream(equip).filter(siteMeter and elec and meter).collect","code" "In Axon language, Filter a collection using a search filter parsed from a string","readAll(equip).filter(parseSearch(""RTU-1""))","code" "In Axon language, Get the day of the year from a DateTime value","dayOfYear(2024-06-15T12:00:00)","code" "In Axon language, Get the day of the year from a Date value","dayOfYear(2024-06-15)","code" "In Axon language, Evaluate a string expression using eval","eval(""2 + 2"")","code" "In Axon language, Evaluate a string expression that calls a function using eval","eval(""now()"")","code" "In Axon language, Check if a string ends with a specified substring","""hi there"".endsWith(""there"")","code" "In Axon language, Check if a string ends with a different substring","""hi there"".endsWith(""hi"")","code" "In Axon language, Declare a scalar value","a:54","code" "In Axon language, Declare a Unicode string","s:""Hello, world!""","code" "In Axon language, replace all occurrences of a substring in a string","""hello"".replace(""hell"", ""t"")","code" "In Axon language, replace all occurrences of a substring in a string","""aababa"".replace(""ab"", ""-"")","code" "In Axon language, Create a DateSpan for the previous week from Sunday to Saturday.","sun..sat","code" "In Axon language, Reference a feature in the feature namespace using the format feature:name.","feature:name","code" "In Axon language, Return if the URI path ends in a slash","feature:name","code" "In Axon language, Parse a string into a Ref using parseRef.","parseRef(""abc-123"")","code" "In Axon language, Parse a string with a leading '@' into a Ref using parseRef.","parseRef(""@abc-123"")","code" "In Axon language, Check if a string contains a substring","contains('hello world', 'world')","code" "In Axon language, Check if a list contains an item","contains([1, 2, 3], 2)","code" "In Axon language, Check if a value is inside a range","contains(1..5, 3)","code" "In Axon language, Check if a date is in a DateSpan","contains($2020-01-01..$2020-12-31, $2020-06-15)","code" "In Axon language, Flatten a nested list to a single level.","[1, [2, 3], [4, [5, 6]]].flatten","code" "In Axon language, Flatten a list of grids into a single grid.","[""Carytown"", ""Gaithersburg""].map(n=>readAll(siteRef->dis==n)).flatten","code" "In Axon language, Return if an object is a span","feature:name","code" "In Axon language, Convert the number 6 to its binary string representation.","6.toRadix(2)","code" "In Axon language, Convert the number 255 to its hexadecimal string representation with width 4.","255.toRadix(16, 4)","code" "In Axon language, Use flatMap to map each item in a list to a list of two values: the value and the value plus 10.","[1, 2, 3].flatMap(v => [v, v+10])","code" "In Axon language, Get minutes from a time value","minutes(14:28)","code" "In Axon language, Get minutes from a datetime value","minutes(2024-12-10T14:28:00-05:00)","code" "In Axon language, List term definitions (tags and conjuncts) in the context namespace as Def[]","contextDefs()","code" "In Axon language, Format feature namespace of definitions as feature:name","feature:name","code" "In Axon language, Parse a string into a Uri instance using parseUri.","""foo bar"".parseUri","code" "In Axon language, Decode an escaped URI string using uriDecode.","""foo%20bar"".uriDecode","code" "In Axon language, Disable function overridable checking","overridable","code" "In Axon language, Mark a dict with typing information","overridable","code" "In Axon language, Generate a new unique Ref identifier","ref()","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Get the basename (last name in path without extension) of a Uri as a string","feature:name","code" "In Axon language, Return absolute value of a number","abs(-5)","code" "In Axon language, Add item to the end of a list and return a new list","add([1, 2, 3], 4)","code" "In Axon language, Add all the items to the end of a list and return a new list","addAll([1, 2], [3, 4])","code" "In Axon language, Return if all the items in a list match the given test function","all([1, 2, 3], x => x > 0)","code" "In Axon language, Return if any of the items in a list match the given test function","any([1, 2, 3], x => x == 2)","code" "In Axon language, Set the unit of a number","as(10, ""kg"")","code" "In Axon language, Fold multiple values into their standard average","avg([1, 2, 3, 4])","code" "In Axon language, Reflectively call a function with the given arguments","call('sum', [1, 2, 3])","code" "In Axon language, Return this string with the first character converted to uppercase","capitalize(""hello"")","code" "In Axon language, Clamp the number val between the min and max","clamp(15, 0, 10)","code" "In Axon language, Concatenate a list of items into a string","concat([""a"", ""b"", ""c""])","code" "In Axon language, Return if a string contains another string","contains(""hello world"", ""world"")","code" "In Axon language, Construct a Coord from two Numbers in decimal degrees","coord(40.7128, -74.0060)","code" "In Axon language, Compute the great-circle distance between two Coords","coordDist(coord(40.7128, -74.0060), coord(34.0522, -118.2437))","code" "In Axon language, Fold multiple values into their total count","count([1, 2, 3])","code" "In Axon language, Get the current top-level function's tags","curFunc()","code" "In Axon language, Construct a DateTime from a date, time, and timezone name","dateTime(""2024-06-01"", ""12:00:00"", ""UTC"")","code" "In Axon language, Get day of month as integer between 1 to 31 from date","day(""2024-06-01"")","code" "In Axon language, Return a string of the given value's type","debugType(123)","code" "In Axon language, Return this string with the first character converted to lowercase","decapitalize(""Hello"")","code" "In Axon language, Lookup a def by its symbol name","def(""myDef"")","code" "In Axon language, Get display string for dict or the given tag","dis({name:""Axon""})","code" "In Axon language, Return if a DateTime is in daylight saving time","dst(dateTime(""2024-06-01"", ""12:00:00"", ""America/New_York""))","code" "In Axon language, Iterate the items of a collection","each([1, 2, 3], x => x * 2)","code" "In Axon language, Write the string representation of a value","echo(""Hello, Axon!"")","code" "In Axon language, Return if Str ends with the specified Str","endsWith(""filename.txt"", "".txt"")","code" "In Axon language, Return if two values are equivalent","equals(1, 1)","code" "In Axon language, Evaluate an Axon string expression","eval(""1 + 2"")","code" "In Axon language, Get the first item from an ordered collection or return null if the collection is empty","first([1, 2, 3])","code" "In Axon language, Flatten a list to a single level","flatten([[1, 2], [3, 4]])","code" "In Axon language, Fold a list into a single value using given folding function","fold([1, 2, 3], 0, (acc, x) => acc + x)","code" "In Axon language, Format an object using the current locale and specified format pattern","format(1234.56, ""#,###.00"")","code" "In Axon language, Parse a Str into a Date","parseDate(""2024-06-01"")","code" "In Axon language, Parse a Str into a DateTime","parseDateTime(""2024-06-01T12:00:00Z"")","code" "In Axon language, Parse a Str into a Float","parseFloat(""3.14"")","code" "In Axon language, Parse a Str into an integer number using the specified radix","parseInt(""FF"", 16)","code" "In Axon language, Parse a Str into a number with an option unit","parseNumber(""10kg"")","code" "In Axon language, Parse a Str into a Ref","parseRef(""@abc123"")","code" "In Axon language, Parse a Str into a Symbol","parseSymbol(""foo"")","code" "In Axon language, Parse a Str into a Time","parseTime(""12:34:56"")","code" "In Axon language, Parse a string into a Uri instance","parseUri(""https://example.com"")","code" "In Axon language, Return the Number representation of not-a-number","nan()","code" "In Axon language, Return the Number representation positive infinity","posInf()","code" "In Axon language, Return the Number representation negative infinity","negInf()","code" "In Axon language, Return current DateTime according to context's time zone","now()","code" "In Axon language, Return today's Date according to context's time zone","today()","code" "In Axon language, Return yesterday's Date according to context's time zone","yesterday()","code" "In Axon language, Convert an obj to its string representation","toStr(123)","code" "In Axon language, Convert a number to a hexadecimal string","toHex(255)","code" "In Axon language, Convert a number to its string representation in the given radix","toRadix(10, 2)","code" "In Axon language, Trim whitespace from the beginning and end of the string","trim("" hello "")","code" "In Axon language, Convert a char number or str to ASCII upper case","upper(""axon"")","code" "In Axon language, Convert a char number or str to ASCII lower case","lower(""AXON"")","code" "In Axon language, Return the unique items in a collection","unique([1, 2, 2, 3])","code" "In Axon language, Get year as integer such as 2010 from date or datetime","year(""2024-06-01"")","code" "In Axon language, Capitalize the first character of a string in Axon.","capitalize(""apple"")","code" "In Axon language, Parse a string into a float using parseFloat.","parseFloat(""123.456"")","code" "In Axon language, Parse a string representing NaN into a float.","parseFloat(""NaN"")","code" "In Axon language, Parse a string representing infinity into a float.","parseFloat(""INF"")","code" "In Axon language, Insert an item into a list at the given index","insert([1,2,4], 2, 3)","code" "In Axon language, Sort a list of strings in natural order","[""bear"", ""cat"", ""apple""].sort","code" "In Axon language, Sort a list of strings by their size","[""bear"", ""cat"", ""apple""].sort((a,b) => a.size <=> b.size)","code" "In Axon language, Sort a grid of sites by the area column","readAll(site).sort((a, b) => a->area <=> b->area)","code" "In Axon language, Return if an object is a ref type","feature:name","code" "In Axon language, Merge two dicts using func:merge","merge({'a':1, 'b':2}, {'b':3, 'c':4})","code" "In Axon language, Remove a tag from a dict using func:merge and Remove.val","merge({'x':10, 'y':20}, {'y':Remove.val})","code" "In Axon language, Check if a Grid does not have a given column name using missing","missing(myGrid, ""colName"")","code" "In Axon language, Check if a Dict does not have a non-null value for a given name using missing","missing(myDict, ""keyName"")","code" "In Axon language, Get the localized string for a tag name using toLocale","toLocale(""greeting"")","code" "In Axon language, Get the localized string for a qualified name using toLocale","toLocale(""sys::hello"")","code" "In Axon language, Return the unit string of a number or null if the value is null.","feature:name(val)","code" "In Axon language, Find a top-level function by name and return its tags.","func(""readAll"")","code" "In Axon language, Find a top-level function by reference and return its tags.","func(readAll)","code" "In Axon language, Return absolute value of a number, if null return null","feature:name","code" "In Axon language, Convert grid rows into a dict using custom key and value functions.","readAll(site).gridRowsToDict(s=>s.dis.toTagName, s=>s->area)","code" "In Axon language, Rename multiple columns in a grid using a mapping dictionary","readAll(site).renameCols({dis:""title"", geoAddr:""subtitle""})","code" "In Axon language, Check if any element in a list is odd using a lambda function.","[1, 3, 5].any v => v.isOdd","code" "In Axon language, Check if any element in a list is odd using a function reference.","[2, 4, 6].any(isOdd)","code" "In Axon language, Check if a character code is ASCII alphanumeric","isAlphaNum(""A"".get(0))","code" "In Axon language, Check if a lowercase letter is ASCII alphanumeric","isAlphaNum(""a"".get(0))","code" "In Axon language, Check if a digit is ASCII alphanumeric","isAlphaNum(""8"".get(0))","code" "In Axon language, Check if a space character is ASCII alphanumeric","isAlphaNum("" "".get(0))","code" "In Axon language, Check if a non-ASCII character is ASCII alphanumeric","isAlphaNum(""Ã"".get(0))","code" "In Axon language, Get the port of a Uri as a Number or null","feature:name","code" "In Axon language, Convert a scalar value to its Axon code representation","toAxonCode(123)","code" "In Axon language, Convert a list to its Axon code representation","toAxonCode([1, 2, 3])","code" "In Axon language, Convert a dict to its Axon code representation","toAxonCode({x:123})","code" "In Axon language, Split a string by whitespace using split.","""a b c"".split","code" "In Axon language, Split a string by a comma using split.","""a,b,c"".split("","")","code" "In Axon language, Split a comma-separated string with spaces using split.","""a, b, c"".split("","")","code" "In Axon language, Split a comma-separated string with spaces using split and disable trimming.","""a, b, c"".split("","", {noTrim})","code" "In Axon language, Return a component definition grid for a given component name.","compDef(""compName"")","code" "In Axon language, Declare a DateSpan for the past year.","today-365days..today","code" "In Axon language, Reference a feature using the feature namespace format.","feature:name","code" "In Axon language, Parse a date string with year, month, day, hour, and minute.","parseDateTime(""2023-02-07 14:30"", ""YYYY-MM-DD hh:mm"")","code" "In Axon language, Parse a date string with a specific timezone.","parseDateTime(""2023-02-07 14:30"", ""YYYY-MM-DD hh:mm"", ""Paris"")","code" "In Axon language, Parse a date string with day, month, two-digit year, 12-hour clock, and am/pm.","parseDateTime(""7/2/23 2:30pm"", ""D/M/YY k:mma"")","code" "In Axon language, Parse a date string with ISO 8601 format including time.","parseDateTime(""2023-02-07T14:30:00"", ""YYYY-MM-DD'T'hh:mm:ss"")","code" "In Axon language, Access a value from a dictionary using the -> operator","dict->foo","code" "In Axon language, Call the trap function directly to access a value by name","dict.trap(""foo"")","code" "In Axon language, Compute the spread (difference between max and min) of a list using fold.","[7, 2, 3].fold(spread)","code" "In Axon language, Check if two numbers are equal using equals.","equals(5, 5)","code" "In Axon language, Compare two lists for equality using equals.","equals([1, 2, 3], [1, 2, 3])","code" "In Axon language, Compare two dictionaries for equality using equals.","equals({a:1, b:2}, {a:1, b:2})","code" "In Axon language, Return the current locale's start of weekday as an integer from 0 (Sunday) to 6 (Saturday)","feature:name","code" "In Axon language, Return the fragment identifier portion of a URI after the hash symbol","feature:name","code" "In Axon language, Iterate each month in a given year and echo the date range.","eachMonth(2010) d => echo(d)","code" "In Axon language, Call a function once for the current month using eachMonth.","eachMonth(today(), f)","code" "In Axon language, Find all strings longer than 3 characters in a list.","[""ape"", ""bat"", ""charlie"", ""dingo""].findAll(x => x.size > 3)","code" "In Axon language, Find all even numbers in a list.","[0, 1, 2, 3, 4].findAll(isEven)","code" "In Axon language, Find all sites with area greater than 10,000ft² from a grid.","readAll(site).findAll(s => s->area > 10_000ft²)","code" "In Axon language, Check if SI metric system should be used for a US country code","isMetric({geoCountry:""US""})","code" "In Axon language, Check if SI metric system should be used for a French country code","isMetric({geoCountry:""FR""})","code" "In Axon language, Check if SI metric system should be used for a temperature in Fahrenheit","isMetric(75°F)","code" "In Axon language, Check if SI metric system should be used for a unit in Celsius delta","isMetric({unit:""Δ°C""})","code" "In Axon language, Check if SI metric system should be used with no arguments","isMetric()","code" "In Axon language, Convert grid columns into a dict using gridColsToDict.","read(temp).hisRead(today).gridColsToDict(c=>c.name, c=>c.meta.dis)","code" "In Axon language, Remove columns from a grid using removeCols.","removeCols(myGrid, [""colA"", ""colB""])","code" "In Axon language, Remove columns from a grid by passing Col instances.","removeCols(myGrid, [colA, colB])","code" "In Axon language, Create a new stream from a given collection using feature namespace.","feature:name","code" "In Axon language, Get the list of values used by a given dict","feature:name","code" "In Axon language, Fold multiple values into their total count","count(1, 2, 3, 4)","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:myFeature","code" "In Axon language, Return if an object is a grid that conforms to the history grid shape","historyGridShape(obj)","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Find the last occurrence of a substring in a string using indexr.","indexr('hello world', 'o')","code" "In Axon language, Find the last occurrence of an item in a list using indexr.","indexr([1, 2, 3, 2, 4], 2)","code" "In Axon language, Use indexr with a negative offset to search from the end of a string.","indexr('banana', 'a', -2)","code" "In Axon language, Declare a DateSpan for the previous year from Jan-1 to Dec-31","Jan-1..Dec-31","code" "In Axon language, Use a feature namespace formatted as feature:name","feature:name","code" "In Axon language, Check if a character code is an ASCII uppercase letter","isUpper(""A"".get(0))","code" "In Axon language, Check if a lowercase character code is an ASCII uppercase letter","isUpper(""a"".get(0))","code" "In Axon language, Check if a digit character code is an ASCII uppercase letter","isUpper(""5"".get(0))","code" "In Axon language, Remove an item from a collection and return a new collection","remove(coll, item)","code" "In Axon language, Call the colsToLocale function on a grid.","colsToLocale(grid)","code" "In Axon language, Replace all null cells in a grid with zero using gridReplace.","grid.gridReplace(null, 0)","code" "In Axon language, Replace all NA cells in a grid with zero using gridReplace.","grid.gridReplace(na(), 0)","code" "In Axon language, Return if an object is a grid type","feature:name","code" "In Axon language, Return if an object is a DateTime type","feature:name","code" "In Axon language, List the lib definitions in the context namespace as Def[]","contextDefs: context->defs","code" "In Axon language, Feature namespace of definitions formatted as feature:name","featureDefs: defs->map(d=>""feature:"" + d->name)","code" "In Axon language, Get the list of names used by a given dict","dict.keys","code" "In Axon language, Return if an object is a list type","feature:name","code" "In Axon language, Replace column meta-data in a grid using setColMeta","setColMeta(grid, name, meta)","code" "In Axon language, Transpose a matrix using Axon.","transpose(grid)","code" "In Axon language, Transpose the result of reading all rows from 'site'.","readAll(site).transpose","code" "In Axon language, Trim whitespace from the end of a string using trimEnd.",""" abc "".trimEnd","code" "In Axon language, Trim whitespace from the end of a string that has no trailing whitespace.","""abc"".trimEnd","code" "In Axon language, Parse a filter string into a Filter instance using parseFilter.","parseFilter(""point and kw"")","code" "In Axon language, Use parseFilter with readAll to filter data.","""point and kw"" readAll(parseFilter(str))","code" "In Axon language, decapitalize a string","decapitalize(""Apple"")","code" "In Axon language, Get the remove value singleton","Remove.val","code" "In Axon language, Access a feature namespace definition formatted as feature:name","feature:name","code" "In Axon language, Rename a column in a grid using renameCol.","readAll(site).renameCol(""dis"", ""title"")","code" "In Axon language, Assign new ids and swizzle internal ref tags in a grid of records.","swizzleRefs(grid)","code" "In Axon language, Get day of month from a date value","date(2024, 6, 10).day","code" "In Axon language, Get day of month from a datetime value","datetime(2024, 6, 10, 14, 28, 0).day","code" "In Axon language, parse an integer literal into an AST","parseAst(123)","code" "In Axon language, parse a variable into an AST","parseAst(a)","code" "In Axon language, parse a not-expression into an AST","parseAst(not a)","code" "In Axon language, parse an addition expression into an AST","parseAst(a + b)","code" "In Axon language, Get the current DateTime in UTC.","nowUtc()","code" "In Axon language, Convert an obj to its string representation","feature:name(obj)","code" "In Axon language, Add item to the end of a list and return a new list","feature:name","code" "In Axon language, Get a relative display name using relDis with string arguments","relDis(""parentName"", ""parentName.childName"")","code" "In Axon language, Get a relative display name using relDis with dictionary arguments","relDis({displayName:""parentName""}, {displayName:""parentName.childName""})","code" "In Axon language, parse a string into a Symbol","parseSymbol(""func:now"")","code" "In Axon language, parse a string into a Symbol with checked set to false","parseSymbol(""func:now"", false)","code" "In Axon language, Collect a stream into an in-memory list","collect(stream)","code" "In Axon language, Collect a stream into an in-memory grid","collectGrid(stream)","code" "In Axon language, Reference a feature namespace definition","feature:name","code" "In Axon language, Reverse sort a list using sortr","sortr([3,1,2])","code" "In Axon language, Reverse sort a grid using sortr","sortr([[2,3],[1,4]])","code" "In Axon language, Reverse sort a list with a custom sorter using sortr","sortr([3,1,2], (a,b)=>a-b)","code" "In Axon language, Return if a string is empty","empty(""hello"")","code" "In Axon language, Return if a list is empty","empty([1, 2, 3])","code" "In Axon language, Return if a dict is empty","empty({foo: ""bar""})","code" "In Axon language, Return if a grid is empty","empty(grid())","code" "In Axon language, Use all to check if all elements in a list are odd numbers.","[1, 3, 5].all v => v.isOdd","code" "In Axon language, Use all to check if all elements in a list are odd numbers using a named function.","[1, 3, 6].all(isOdd)","code" "In Axon language, Return if val is the Number representation of not-a-number","isNaN(val)","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Check if a string is a legal tag name","Etc.isTagName(""feature:name"")","code" "In Axon language, Convert a grid row to a list of cells, including sparse cells as null.","readAll(equip).first.rowToList","code" "In Axon language, Get seconds of the time as integer between 0 to 59 from time","feature:name(time(""14:28:35""))","code" "In Axon language, Get seconds of the time as integer between 0 to 59 from datetime","feature:name(datetime(""2024-12-10T14:28:35-05:00""))","code" "In Axon language, Trim whitespace from the beginning and end of a string.",""" abc "".trim","code" "In Axon language, Trim whitespace from a string with no leading or trailing spaces.","""abc"".trim","code" "In Axon language, Pad a string to the right with a specific character using padr.","""xyz"".padr(5, ""-"")","code" "In Axon language, Pad a string to the right with a specific character and width less than string length.","""xyz"".padr(2, ""."")","code" "In Axon language, Get month as integer between 1 to 12 from date","month(2024-06-10)","code" "In Axon language, Get month as integer between 1 to 12 from datetime","month(2024-06-10T14:28:00-05:00)","code" "In Axon language, Declare a dict with typing information using marker","marker:{foo:""Bar"", baz:123}","code" "In Axon language, Declare a function in Axon language","feature:name","code" "In Axon language, Replace grid level meta-data with a given meta Dict using setMeta","read(temp).hisRead(today).setMeta({view:""table""})","code" "In Axon language, Check if a DateTime is in daylight saving time","dst(dt)","code" "In Axon language, Return the query portion of a URI after the question mark","uriQuery(""https://example.com/page?foo=bar&baz=qux"")","code" "In Axon language, Use feature namespace formatting as feature:name","feature:myFeature","code" "In Axon language, Return if a year is a leap year","feature:name(2020)","code" "In Axon language, Return the Number representation of not-a-number","nan()","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Fold multiple values into their numeric sum","sum(1, 2, 3)","code" "In Axon language, Use a feature namespace definition","feature:myFeature","code" "In Axon language, Convert a number to a hexadecimal string","feature:name(123)","code" "In Axon language, Return the feature namespace of definitions formatted as feature:name using Ref.dis","Ref.dis","code" "In Axon language, Get the time portion from a DateTime value","now().time","code" "In Axon language, Construct a time instance for 20:45","time(20, 45)","code" "In Axon language, Convert a string to ASCII lower case.","lower(""CAT"")","code" "In Axon language, Convert a mixed-case string to ASCII lower case.","lower(""Cat"")","code" "In Axon language, Convert a character code to lower case character.","lower(65).toChar","code" "In Axon language, Get the columns from a grid as a list","readAll(site).cols","code" "In Axon language, Get the name of the first column in a grid","readAll(site).cols.first.name","code" "In Axon language, Evaluate a string expression to a function and call it with no arguments.","evalToFunc(""now"").call","code" "In Axon language, Evaluate a string expression representing a function and call it with arguments.","evalToFunc(""(x, y)=>x+y"").call([3, 4])","code" "In Axon language, Evaluate a string expression to a function and call it directly with arguments.","(evalToFunc(""(x, y)=>x+y""))(3, 4)","code" "In Axon language, Evaluate a string expression to a function and call it with a list argument.","evalToFunc(""""""replace(_, ""x"", ""_"")"""""").call([""xyz""])","code" "In Axon language, Calculate the average of a list of numbers using fold and avg.","[7, 2, 3].fold(avg)","code" "In Axon language, Return the Number representation negative infinity","negInf()","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Get the end value of a DateSpan","end(dateSpan)","code" "In Axon language, Get the end value of a Span","end(span)","code" "In Axon language, Get the end value of a range","end(1..10)","code" "In Axon language, Reference a feature namespace definition","feature:name","code" "In Axon language, Skip the given number of items in a stream","stream->skip(3)","code" "In Axon language, Fold columns 'b' and 'c' in a grid and create a new column 'bc' with their sum.","g.foldCols([""b"", ""c""], ""bc"", sum)","code" "In Axon language, Fold columns selected by a function into a new column 'bc' with their sum.","g.foldCols(colSel, ""bc"", sum)","code" "In Axon language, Check if a Date or DateTime falls on a weekday (Mon-Fri)","feature:name(date)","code" "In Axon language, Add a trailing slash to a URI using Uri.plusSlash","Uri.plusSlash(""http://example.com"")","code" "In Axon language, Use a feature namespace definition formatted as feature:name","feature:myFeature","code" "In Axon language, Add meta-data tags to a grid using addMeta","read(temp).hisRead(today).addMeta({view:""table""})","code" "In Axon language, Check if a character code is an ASCII lowercase letter using isLower.","isLower(""a"".get(0))","code" "In Axon language, Check if a character code is an ASCII lowercase letter using isLower with an uppercase letter.","isLower(""A"".get(0))","code" "In Axon language, Check if a character code is an ASCII lowercase letter using isLower with a digit.","isLower(""5"".get(0))","code" "In Axon language, Get display string for a dict using dis","dis(myDict)","code" "In Axon language, Get display string for a specific tag in a dict using dis","dis(myDict, ""tagName"")","code" "In Axon language, Get display string for a specific tag with a default value using dis","dis(myDict, ""tagName"", ""defaultValue"")","code" "In Axon language, Add a row to a grid using addRow.","readAll(site).addRow({dis:""New Row""})","code" "In Axon language, Get the current top-level function's tags","feature:name","code" "In Axon language, Use reGroups to extract groups from a string using a regular expression.","re: r""(RTU|AHU)-(\\d+)"","code" "In Axon language, Use reGroups when the string does not match the regular expression.","re: r""(RTU|AHU)-(\\d+)"","code" "In Axon language, Get the types used in each column of a grid.","readAll(site).gridColKinds","code" "In Axon language, Write the str representation of x to stdout and return x.","x","code" "In Axon language, Feature namespace of definitions formatted as feature:name.","feature:name","code" "In Axon language, List all definitions in the context namespace as Def[]","contextDefs: context->defs","code" "In Axon language, Format namespace of definitions as feature:name","defs->map(d=>""feature:"" + d->name)","code" "In Axon language, Check if an ASCII character code is an alphabetic letter","isAlpha(""A"".get(0))","code" "In Axon language, Check if an ASCII lowercase character code is an alphabetic letter","isAlpha(""a"".get(0))","code" "In Axon language, Check if an ASCII digit character code is an alphabetic letter","isAlpha(""8"".get(0))","code" "In Axon language, Check if an ASCII space character code is an alphabetic letter","isAlpha("" "".get(0))","code" "In Axon language, Check if a non-ASCII character code is an alphabetic letter","isAlpha(""Ã"".get(0))","code" "In Axon language, Use eachWhile to iterate over a list and stop when a condition is met.","eachWhile([1,2,3,4], x => if(x > 2) x)","code" "In Axon language, Use eachWhile to iterate over a dictionary and return the value when a condition is met.","eachWhile({a:1, b:2, c:3}, (v, k) => if(v == 2) v)","code" "In Axon language, Use eachWhile to iterate over a string and return the character code when a condition is met.","eachWhile(""abc"", (c, i) => if(c == 98) c)","code" "In Axon language, Use eachWhile to iterate over a range and return the integer when a condition is met.","eachWhile(0..5, x => if(x == 3) x)","code" "In Axon language, Declare a DateSpan for the 3 month quarter previous to this quarter","dateSpan(-1q)","code" "In Axon language, Reference a feature using the feature namespace format","feature:name","code" "In Axon language, Return if an integer is an even number","isEven: n % 2 == 0","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Get year as integer from a date","year(date)","code" "In Axon language, Get year as integer from a datetime","year(datetime)","code" "In Axon language, Get timezone as city name string from a datetime value","tz(dt)","code" "In Axon language, Get the environment default timezone when datetime is null","tz(null)","code" "In Axon language, Calculate the arithmetic mean of a list of numbers using fold.","[2, 4, 5, 3].fold(mean)","code" "In Axon language, Return base 10 logarithm of a value in Axon.","math:log10(100)","code" "In Axon language, Call a namespaced function in Axon using feature:name format.","feature:name(arg)","code" "In Axon language, Compute the best fit multiple linear regression equation given y and x matrices.","matrixFitLinearRegression(y, x)","code" "In Axon language, Convert angle in degrees to an angle in radians","feature:name(degrees)","code" "In Axon language, Convert a general grid to an optimized matrix grid using toMatrix.","toMatrix(grid)","code" "In Axon language, Convert a grid to a matrix and replace null and NA values with 0.","toMatrix(grid, {nullVal: 0, naVal: 0})","code" "In Axon language, Create a sparse or initialized matrix with 10 rows, 1000 columns, and initial value 0.","toMatrix({rows:10, cols:1000, init:0})","code" "In Axon language, Return the smallest whole number greater than or equal to val.","ceil(val)","code" "In Axon language, Return the arc sine of a value","feature:name(value)","code" "In Axon language, Return the arc cosine.","acos(x)","code" "In Axon language, Raise a value to a specified power in Axon.","feature:name(val, power)","code" "In Axon language, Return e raised to val","math:exp(val)","code" "In Axon language, Return tangent of angle in radians","feature:name(angle)","code" "In Axon language, Calculate the mean bias error of a sample using fold.","samples.fold(meanBiasErr)","code" "In Axon language, Calculate the mean bias error of a sample with 1 degree of freedom.","samples.fold(meanBiasErr(_,_,1))","code" "In Axon language, Return constant for pi","3.141592653589793","code" "In Axon language, Use feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Convert rectangular coordinates (x, y) to polar (r, theta)","feature:name(x, y)","code" "In Axon language, Add two matrices together using matrixAdd.","matrixAdd([[1,2],[3,4]], [[5,6],[7,8]])","code" "In Axon language, Return the arc tangent.","atan(1)","code" "In Axon language, Return the arc cosine of a value","acos(0.5)","code" "In Axon language, Return the arc sine of a value","asin(0.5)","code" "In Axon language, Return the arc tangent of a value","atan(1)","code" "In Axon language, Convert rectangular coordinates (x, y) to polar (r, theta)","atan2(3, 4)","code" "In Axon language, Bitwise and of two numbers","bitAnd(5, 3)","code" "In Axon language, Bitwise not of a number","bitNot(5)","code" "In Axon language, Bitwise or of two numbers","bitOr(5, 3)","code" "In Axon language, Bitwise left shift","bitShiftl(2, 3)","code" "In Axon language, Bitwise right shift","bitShiftr(8, 2)","code" "In Axon language, Bitwise xor of two numbers","bitXor(5, 3)","code" "In Axon language, Return the smallest whole number greater than or equal to value","ceil(2.3)","code" "In Axon language, Return the cosine of angle in radians","cos(1.57)","code" "In Axon language, Return the hyperbolic cosine","cosh(1)","code" "In Axon language, Return e raised to value","exp(2)","code" "In Axon language, Compute the best fit linear regression equation for a grid of x, y coordinates","fitLinearRegression([[1,2],[2,3],[3,4]])","code" "In Axon language, Return the largest whole number less than or equal to value","floor(2.9)","code" "In Axon language, Return base 10 logarithm of value","log10(100)","code" "In Axon language, Return natural logarithm to the base e of value","logE(2.718)","code" "In Axon language, Add two matrices together and return new matrix","matrixAdd([[1,2],[3,4]], [[5,6],[7,8]])","code" "In Axon language, Return the determinant of a matrix","matrixDeterminant([[1,2],[3,4]])","code" "In Axon language, Compute the best fit multiple linear regression equation for matrices","matrixFitLinearRegression([[1,2],[2,3]], [[1,2],[3,4]])","code" "In Axon language, Return the inverse of a matrix","matrixInverse([[1,2],[3,4]])","code" "In Axon language, Multiply two matrices and return new matrix","matrixMult([[1,2],[3,4]], [[5,6],[7,8]])","code" "In Axon language, Subtract two matrices and return new matrix","matrixSub([[5,6],[7,8]], [[1,2],[3,4]])","code" "In Axon language, Transpose a matrix","matrixTranspose([[1,2],[3,4]])","code" "In Axon language, Compute the arithmetic mean of a sample of numbers","mean([1,2,3,4,5])","code" "In Axon language, Compute the mean bias error of a sample","meanBiasErr([1,2,3,4,5])","code" "In Axon language, Compute the median value of a sample","median([1,3,2,5,4])","code" "In Axon language, Return constant for pi","pi()","code" "In Axon language, Return value raised to the specified power","pow(2, 3)","code" "In Axon language, Compute the quantile of a list of numbers","quantile([1,2,3,4,5], 0.5)","code" "In Axon language, Return random integer within given inclusive range","random(1, 10)","code" "In Axon language, Return the remainder or modulo of division","remainder(10, 3)","code" "In Axon language, Compute the root mean square error of a sample","rootMeanSquareErr([1,2,3,4,5])","code" "In Axon language, Return the nearest whole number to value","round(2.6)","code" "In Axon language, Return sine of angle in radians","sin(1.57)","code" "In Axon language, Return hyperbolic sine","sinh(1)","code" "In Axon language, Return square root of value","sqrt(9)","code" "In Axon language, Compute the standard deviation of a sample","standardDeviation([1,2,3,4,5])","code" "In Axon language, Return tangent of angle in radians","tan(0.78)","code" "In Axon language, Return hyperbolic tangent","tanh(1)","code" "In Axon language, Convert angle in radians to degrees","toDegrees(3.14)","code" "In Axon language, Convert a general grid to an optimized matrix grid","toMatrix([[1,2],[3,4]])","code" "In Axon language, Convert angle in degrees to radians","toRadians(180)","code" "In Axon language, Convert angle in radians to degrees","math:radToDeg(1.57)","code" "In Axon language, Calculate the median of a list of numbers using fold and median.","[2, 4, 5, 3, 1].fold(median)","code" "In Axon language, Bitwise or operation between two variables","a | b","code" "In Axon language, Feature namespace definition","feature:name","code" "In Axon language, Generate a random integer with no specified range.","random()","code" "In Axon language, Generate a random integer between 0 and 100 inclusive.","random(0..100)","code" "In Axon language, bitwise not operation","~a","code" "In Axon language, feature namespace definition","feature:name","code" "In Axon language, Multiply two matrices using matrixMult.","matrixMult(a, b)","code" "In Axon language, bitwise left shift operation","a << b","code" "In Axon language, feature namespace definition","feature:name","code" "In Axon language, Return the arc cosine of a value","acos(0.5)","code" "In Axon language, Return the arc sine of a value","asin(0.5)","code" "In Axon language, Return the arc tangent of a value","atan(1)","code" "In Axon language, Convert rectangular coordinates (x, y) to polar (r, theta)","atan2(3, 4)","code" "In Axon language, Bitwise and of two numbers","bitAnd(6, 3)","code" "In Axon language, Bitwise not of a number","bitNot(5)","code" "In Axon language, Bitwise or of two numbers","bitOr(2, 4)","code" "In Axon language, Bitwise left shift","bitShiftl(2, 3)","code" "In Axon language, Bitwise right shift","bitShiftr(8, 2)","code" "In Axon language, Bitwise xor of two numbers","bitXor(5, 3)","code" "In Axon language, Return the smallest whole number greater than or equal to value","ceil(2.3)","code" "In Axon language, Return the cosine of angle in radians","cos(1.57)","code" "In Axon language, Return the hyperbolic cosine","cosh(1)","code" "In Axon language, Return e raised to value","exp(2)","code" "In Axon language, Compute best fit linear regression for grid of x, y coordinates","fitLinearRegression([[1,2],[2,3],[3,4]])","code" "In Axon language, Return the largest whole number less than or equal to value","floor(2.7)","code" "In Axon language, Return base 10 logarithm of value","log10(100)","code" "In Axon language, Return natural logarithm to the base e of value","logE(2.71828)","code" "In Axon language, Add two matrices together","matrixAdd([[1,2],[3,4]], [[5,6],[7,8]])","code" "In Axon language, Return the determinant of a matrix","matrixDeterminant([[1,2],[3,4]])","code" "In Axon language, Compute best fit multiple linear regression for matrices","matrixFitLinearRegression([[1,2,3]], [[4,5,6],[7,8,9]])","code" "In Axon language, Return the inverse of a matrix","matrixInverse([[1,2],[3,4]])","code" "In Axon language, Multiply two matrices","matrixMult([[1,2],[3,4]], [[5,6],[7,8]])","code" "In Axon language, Subtract two matrices","matrixSub([[5,6],[7,8]], [[1,2],[3,4]])","code" "In Axon language, Transpose a matrix","matrixTranspose([[1,2,3],[4,5,6]])","code" "In Axon language, Compute arithmetic mean of a list of numbers","mean([1,2,3,4,5])","code" "In Axon language, Compute mean bias error of a sample","meanBiasErr([1,2,3,4,5])","code" "In Axon language, Compute median of a list of numbers","median([5,2,9,1,7])","code" "In Axon language, Return constant for pi","pi()","code" "In Axon language, Return value raised to the specified power","pow(2, 3)","code" "In Axon language, Compute the p-th quantile of a list of numbers","quantile([1,2,3,4,5], 0.5)","code" "In Axon language, Return random integer within given inclusive range","random(1, 10)","code" "In Axon language, Return the remainder of division","remainder(10, 3)","code" "In Axon language, Compute root mean square error of a sample","rootMeanSquareErr([1,2,3,4,5])","code" "In Axon language, Return the nearest whole number to value","round(2.6)","code" "In Axon language, Return sine of angle in radians","sin(1.57)","code" "In Axon language, Return hyperbolic sine","sinh(1)","code" "In Axon language, Return square root of value","sqrt(9)","code" "In Axon language, Compute standard deviation of a series of numbers","standardDeviation([1,2,3,4,5])","code" "In Axon language, Return tangent of angle in radians","tan(0.785)","code" "In Axon language, Return hyperbolic tangent","tanh(1)","code" "In Axon language, Convert angle in radians to degrees","toDegrees(3.14)","code" "In Axon language, Convert a general grid to an optimized matrix grid","toMatrix([[1,2],[3,4]])","code" "In Axon language, Convert angle in degrees to radians","toRadians(180)","code" "In Axon language, Bitwise and operation between two values","a & b","code" "In Axon language, Access a feature namespace definition","feature:name","code" "In Axon language, Return the cosine of an angle in radians","cos(angle)","code" "In Axon language, bitwise xor operation","a ^ b","code" "In Axon language, feature namespace definition","feature:name","code" "In Axon language, Return the largest whole number less than or equal to val","floor(val)","code" "In Axon language, Round a value to the nearest whole number in Axon.","round(3.7)","code" "In Axon language, Call a feature function using the feature:name format in Axon.","feature:round","code" "In Axon language, Return the inverse of a matrix using toMatrix().","toMatrix().inverse()","code" "In Axon language, Return sine of angle in radians","math:sin(1.57)","code" "In Axon language, Compute the natural logarithm of a value using Axon.","feature:name(val)","code" "In Axon language, Return hyperbolic sine.","feature:name(x)","code" "In Axon language, Calculate the determinant of a square matrix.","matrixDeterminant([[1,2],[3,4]])","code" "In Axon language, Bitwise right shift operation","a >> b","code" "In Axon language, Feature namespace definition","feature:name","code" "In Axon language, Calculate the standard deviation of a list of numbers using fold.","[4, 2, 5, 8, 6].fold(standardDeviation)","code" "In Axon language, Return the remainder of division using modulo operator","a % b","code" "In Axon language, Reference a feature using the feature namespace format","feature:name","code" "In Axon language, Compute the 0.7 quantile of a list using the default linear method.","[10,10,10,25,100].fold(quantile(0.7))","code" "In Axon language, Compute the 0.7 quantile of a list using the nearest method.","[10,10,10,25,100].fold(quantile(0.7, ""nearest""))","code" "In Axon language, Compute the 0.7 quantile of a list using the lower method.","[10,10,10,25,100].fold(quantile(0.7, ""lower""))","code" "In Axon language, Compute the 0.7 quantile of a list using the higher method.","[10,10,10,25,100].fold(quantile(0.7, ""higher""))","code" "In Axon language, Compute the 0.7 quantile of a list using the linear method explicitly.","[10,10,10,25,100].fold(quantile(0.7, ""linear""))","code" "In Axon language, Compute the 0.7 quantile of a list using the midpoint method.","[10,10,10,25,100].fold(quantile(0.7, ""midpoint""))","code" "In Axon language, Return hyperbolic tangent.","math:tanh(1.0)","code" "In Axon language, Return square root of a value","feature:name(val)","code" "In Axon language, Subtract two matrices using matrixSub","matrixSub([[1,2],[3,4]], [[4,3],[2,1]])","code" "In Axon language, Calculate the root mean square error (RMSE) of a sample set with zero degrees of freedom.","samples.fold(rootMeanSquareErr)","code" "In Axon language, Calculate the root mean square error (RMSE) of a sample set with one degree of freedom.","samples.fold(rootMeanSquareErr(_,_,1))","code" "In Axon language, Compute the best fit linear regression equation for a grid of x, y coordinates.","data: [{x:1, y:2}, {x:2, y:4}, {x:4, y:4}, {x:6, y:5}].toGrid fitLinearRegression(data)","code" "In Axon language, Return the hyperbolic cosine.","cosh(x)","code" "In Axon language, Transpose a matrix using Axon language","transpose(toMatrix(x))","code" "In Axon language, Convert a value to a matrix in Axon","toMatrix(x)","code" "In Axon language, Call a feature namespace function in Axon","feature:name()","code" "In Axon language, Get information about a file handle using ioInfo","ioInfo(`io/`)","code" "In Axon language, Get information about a specific file using ioInfo","ioInfo(`io/sites.trio`)","code" "In Axon language, Convert a file handle to append mode","ioAppend(`io/foo.txt`)","code" "In Axon language, Write a string to a file in append mode","ioWriteStr(""append a line\\n"", ioAppend(`io/foo.txt`))","code" "In Axon language, Generate a password-based cryptographic key using PBKDF2WithHmacSHA1.","ioPbk(""PBKDF2WithHmacSHA1"", ""secret"", ioRandom(64), 1000, 20)","code" "In Axon language, Generate a password-based cryptographic key and encode it in Base64.","ioPbk(""PBKDF2WithHmacSHA1"", ""secret"", ioRandom(64), 1000, 20).ioToBase64","code" "In Axon language, Write a string to an I/O handle","ioWrite(handle, ""Hello World"")","code" "In Axon language, Read a CSV file from within a zip archive using ioZipEntry.","ioZipEntry(`io/batch.zip`, `/zone-temp.csv`).ioReadCsv","code" "In Axon language, Read an I/O handle into memory as a string.","ioReadStr(handle)","code" "In Axon language, Write a value to a Xeto text format file using ioWriteXeto.","ioWriteXeto(val, handle, opts: null)","code" "In Axon language, Write an Axon data structure to JSON using ioWriteJson.","ioWriteJson({foo:""bar""}, handle)","code" "In Axon language, Write an Axon data structure to JSON with noEscapeUnicode option.","ioWriteJson({foo:""bär""}, handle, {noEscapeUnicode:true})","code" "In Axon language, Write an Axon data structure to JSON using Haystack 3 encoding.","ioWriteJson({foo:""bar""}, handle, {v3:true})","code" "In Axon language, Write an Axon data structure to JSON using Haystack 4 encoding.","ioWriteJson({foo:""bar""}, handle, {v4:true})","code" "In Axon language, Read a JSON file into memory using ioReadJson","ioReadJson(handle)","code" "In Axon language, Read a JSON file with options using ioReadJson","ioReadJson(handle, {v3:true, safeNames:true})","code" "In Axon language, Generate a randomized series of bytes for input/output handle","feature:name","code" "In Axon language, Write a Grid to the Zinc format.","grid.toZinc","code" "In Axon language, Format a feature namespace definition as feature:name.","feature:name","code" "In Axon language, Write a list of string lines separated with ""\\n"" character.","list(""line1\\nline2\\nline3"")","code" "In Axon language, Feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Iterate over each line in a file handle and print the line.","ioEachLine(handle, fn)","code" "In Axon language, Read a Zinc file into memory as a Haystack data type","readZincFile(""file.zinc"")","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:myFeature","code" "In Axon language, Skip leading 4 lines in a CSV file using ioSkip.","ioSkip(`io/foo.csv`, {lines:4}).ioReadCsv","code" "In Axon language, Skip byte order mark in a CSV file using ioSkip.","ioSkip(`io/foo.csv`, {bom}).ioReadCsv","code" "In Axon language, Write all sites to a trio file in the io directory","readAll(site).ioWriteTrio(`io/sites.trio`)","code" "In Axon language, Write all sites to a trio string literal","readAll(site).ioWriteTrio("""")","code" "In Axon language, Export weather temperature history to a CSV file","read(weatherTemp).hisRead(pastMonth).ioWriteCsv(`io/point.csv`)","code" "In Axon language, Import history data from a CSV file and write to hisId","ioReadCsv(`io/his.csv`).map(row => {ts: parseDateTime(row->ts, ""YYYY-MM-DD'T'hh:mm"", ""New_York""), val: parseNumber(row->val)}).hisWrite(hisId)","code" "In Axon language, Parse an oBIX XML document and map into name/value pairs","xmlRead(`http://obix.acme.com/obix/about`).xmlElems.map(x => {name:x.xmlAttr(""name"").xmlVal, val:x.xmlAttr(""val"").xmlVal})","code" "In Axon language, Read a Xeto data file into memory as a Haystack data type.","ioReadXeto(handle)","code" "In Axon language, Read a Xeto data file into memory as a Haystack data type with options.","ioReadXeto(handle, opts)","code" "In Axon language, Delete a file using its I/O handle.","ioDelete(handle)","code" "In Axon language, Read a directory listing in the project's io/ directory.","ioDir(`io/`)","code" "In Axon language, Read a directory listing in the pod using a fan URI.","ioDir(`fan://haystack`)","code" "In Axon language, decode a base64 string using ioFromBase64","ioFromBase64(""c2t5c3Bhcms"").ioReadStr","code" "In Axon language, Read a CSV file using ioReadCsv with default options","ioReadCsv(handle)","code" "In Axon language, Read a CSV file using ioReadCsv with a custom delimiter","ioReadCsv(handle, {delimiter:"";""})","code" "In Axon language, Read a CSV file using ioReadCsv without headers","ioReadCsv(handle, {noHeader:true})","code" "In Axon language, Convert a handle to append mode","ioAppend(handle)","code" "In Axon language, Configure an I/O handle to use the specified charset","ioCharset(handle, charset)","code" "In Axon language, Copy a file or directory to the new specified location","ioCopy(src, dest)","code" "In Axon language, Generate a cycle redundancy check code as a Number","ioCrc(handle)","code" "In Axon language, Create a directory or empty file with the given I/O handle","ioCreate(handle)","code" "In Axon language, Delete a file or a directory as mapped by the given I/O handle","ioDelete(handle)","code" "In Axon language, Generate a one-way hash of the given I/O handle","ioDigest(handle)","code" "In Axon language, Read a directory listing, return a grid with cols","ioDir(handle)","code" "In Axon language, Iterate the rows of a CSV file and callback the given function with two parameters","ioEachCsv(handle, func)","code" "In Axon language, For each line of the given source stream call the given function with two parameters","ioEachLine(handle, func)","code" "In Axon language, Export a view to the given file handle","ioExport(view, handle)","code" "In Axon language, Return an I/O handle to decode from a base64 string","ioFromBase64(base64Str)","code" "In Axon language, Wrap an I/O handle to GZIP compress/uncompress","ioGzip(handle)","code" "In Axon language, Generate an HMAC message authentication as specified by RFC 2104","ioHmac(handle, key)","code" "In Axon language, Get information about a file handle and return a Dict","ioInfo(handle)","code" "In Axon language, Move or rename a file or directory","ioMove(src, dest)","code" "In Axon language, Generate a password based cryptographic key","ioPbk(password, salt)","code" "In Axon language, Generate randomized series of bytes which can be used as an input I/O handle","ioRandom(size)","code" "In Axon language, Read a CSV file into memory as a Grid","ioReadCsv(handle)","code" "In Axon language, Read a JSON file into memory","ioReadJson(handle)","code" "In Axon language, Read a JSON file formatted as a standardized Haystack grid into memory","ioReadJsonGrid(handle)","code" "In Axon language, Read an I/O handle into memory as a list of string lines","ioReadLines(handle)","code" "In Axon language, Read an I/O handle into memory as a string","ioReadStr(handle)","code" "In Axon language, Read a Trio file into memory as a list of Dicts","ioReadTrio(handle)","code" "In Axon language, Read a Xeto data file into memory as a Haystack data type","ioReadXeto(handle)","code" "In Axon language, Read a Zinc file into memory as a Haystack data type","ioReadZinc(handle)","code" "In Axon language, Apply a skipping operation to an input I/O handle","ioSkip(handle, n)","code" "In Axon language, Read a stream of dicts from a comma separated value file","ioStreamCsv(handle)","code" "In Axon language, Read a stream of lines","ioStreamLines(handle)","code" "In Axon language, Encode an I/O handle into a base64 string","ioToBase64(handle)","code" "In Axon language, Encode an I/O handle into hexadecimal string","ioToHex(handle)","code" "In Axon language, Write a grid to a CSV file","ioWriteCsv(grid, handle)","code" "In Axon language, Write an Excel XLS file","ioWriteExcel(grid, handle)","code" "In Axon language, Write an Axon data structure to HTML","ioWriteHtml(data, handle)","code" "In Axon language, Write an Axon data structure to JSON","ioWriteJson(data, handle)","code" "In Axon language, Write an Axon data structure to RDF JSON-LD format","ioWriteJsonLd(data, handle)","code" "In Axon language, Write a list of string lines separated with '\\n' character","ioWriteLines(lines, handle)","code" "In Axon language, Render data to a PDF file","ioWritePdf(data, handle)","code" "In Axon language, Write a string to an I/O handle","ioWriteStr(str, handle)","code" "In Axon language, Render data to an SVG file","ioWriteSvg(data, handle)","code" "In Axon language, Write dicts to a Trio file","ioWriteTrio(dicts, handle)","code" "In Axon language, Write an Axon data structure to RDF Turtle format","ioWriteTurtle(data, handle)","code" "In Axon language, Write value to a Xeto text format file","ioWriteXeto(value, handle)","code" "In Axon language, Write a grid to an XML file","ioWriteXml(grid, handle)","code" "In Axon language, Write a Grid to the Zinc format","ioWriteZinc(grid, handle)","code" "In Axon language, Read a zip file's entry listing, return a grid with cols","ioZipDir(handle)","code" "In Axon language, Return an I/O handle which may be used to read from a zip entry within a zip file","ioZipEntry(zipHandle, entryName)","code" "In Axon language, List the entries of a zip file using ioZipDir.","ioZipDir(`io/batch.zip`)","code" "In Axon language, Read a JSON file formatted as a standardized Haystack grid into memory","ioReadJsonGrid(handle)","code" "In Axon language, Read a JSON file formatted as a standardized Haystack grid into memory with options","ioReadJsonGrid(handle, opts)","code" "In Axon language, Stream rows from a CSV file as dictionaries using ioStreamCsv.","ioStreamCsv(handle)","code" "In Axon language, Stream rows from a CSV file with options using ioStreamCsv.","ioStreamCsv(handle, opts)","code" "In Axon language, Read all lines from a file using ioReadLines.","ioReadLines(`io/file.txt`)","code" "In Axon language, Read lines from a file with a custom line size limit using ioReadLines.","ioReadLines(`io/file.txt`, {limit: 10_000})","code" "In Axon language, Generate an HMAC message authentication using SHA-1 and encode it to Base64.","ioHmac(""foo"", ""SHA-1"", ""secret"").ioToBase64","code" "In Axon language, Export a view to a file handle using ioExport","ioExport(req, handle)","code" "In Axon language, Write data to a PDF file using ioWritePdf with default options.","read(power).hisRead(yesterday).ioWritePdf(`io/portrait.pdf`)","code" "In Axon language, Write data to a PDF file with a custom page size using ioWritePdf.","read(power).hisRead(yesterday).ioWritePdf(`io/landscape.pdf`, {pageSize:""11in,8.5in""})","code" "In Axon language, Render a table as a single auto-fit page PDF using ioWritePdf.","readAll(site).ioWritePdf(`io/sites.pdf`, {pageSize:""auto""})","code" "In Axon language, Write a dictionary to a Trio file using ioWriteTrio.","ioWriteTrio(val, handle, opts)","code" "In Axon language, Write a dictionary to a Trio file without sorting tags.","ioWriteTrio(val, handle, noSort)","code" "In Axon language, Convert a handle to append mode","ioAppend(handle)","code" "In Axon language, Configure an I/O handle to use the specified charset","ioCharset(handle, charset)","code" "In Axon language, Copy a file or directory to the new specified location","ioCopy(src, dest)","code" "In Axon language, Generate a cycle reduancy check code as a Number","ioCrc(handle)","code" "In Axon language, Create a directory or empty file with the given I/O handle","ioCreate(handle)","code" "In Axon language, Delete a file or a directory as mapped by the given I/O handle","ioDelete(handle)","code" "In Axon language, Generate a one-way hash of the given I/O handle","ioDigest(handle, algorithm)","code" "In Axon language, Read a directory listing, return a grid with cols","ioDir(handle)","code" "In Axon language, Iterate the rows of a CSV file and callback the given function with two parameters","ioEachCsv(handle, func)","code" "In Axon language, For each line of the given source stream call the given function with two parameters","ioEachLine(handle, func)","code" "In Axon language, Export a view to the given file handle","ioExport(view, handle)","code" "In Axon language, Return an I/O handle to decode from a base64 string","ioFromBase64(base64Str)","code" "In Axon language, Wrap an I/O handle to GZIP compress/uncompress","ioGzip(handle)","code" "In Axon language, Generate an HMAC message authentication as specified by RFC 2104","ioHmac(handle, key, algorithm)","code" "In Axon language, Get information about a file handle and return a Dict","ioInfo(handle)","code" "In Axon language, Move or rename a file or directory","ioMove(src, dest)","code" "In Axon language, Generate a password based cryptographic key","ioPbk(password, salt, algorithm)","code" "In Axon language, Generate randomized series of bytes which can be used as an input I/O handle","ioRandom(size)","code" "In Axon language, Read a CSV file into memory as a Grid","ioReadCsv(handle)","code" "In Axon language, Read a JSON file into memory","ioReadJson(handle)","code" "In Axon language, Read a JSON file formatted as a standardized Haystack grid into memory","ioReadJsonGrid(handle)","code" "In Axon language, Read an I/O handle into memory as a list of string lines","ioReadLines(handle)","code" "In Axon language, Read an I/O handle into memory as a string","ioReadStr(handle)","code" "In Axon language, Read a Trio file into memory as a list of Dicts","ioReadTrio(handle)","code" "In Axon language, Read a Xeto data file into memory as a Haystack data type","ioReadXeto(handle)","code" "In Axon language, Read a Zinc file into memory as a Haystack data type","ioReadZinc(handle)","code" "In Axon language, Apply a skipping operation to an input I/O handle","ioSkip(handle, n)","code" "In Axon language, Read a stream of dicts from a comma separated value file","ioStreamCsv(handle)","code" "In Axon language, Read a stream of lines","ioStreamLines(handle)","code" "In Axon language, Encode an I/O handle into a base64 string","ioToBase64(handle)","code" "In Axon language, Encode an I/O handle into hexidecimal string","ioToHex(handle)","code" "In Axon language, Write a grid to a CSV file","ioWriteCsv(grid, handle)","code" "In Axon language, Write an Excel XLS file","ioWriteExcel(grid, handle)","code" "In Axon language, Write an Axon data structure to HTML","ioWriteHtml(data, handle)","code" "In Axon language, Write an Axon data structure to JSON","ioWriteJson(data, handle)","code" "In Axon language, Write an Axon data structure to RDF JSON-LD format","ioWriteJsonLd(data, handle)","code" "In Axon language, Write a list of string lines separated with ""\\n"" character","ioWriteLines(lines, handle)","code" "In Axon language, Render data to a PDF file","ioWritePdf(data, handle)","code" "In Axon language, Write a string to an I/O handle","ioWriteStr(str, handle)","code" "In Axon language, Render data to an SVG file","ioWriteSvg(data, handle)","code" "In Axon language, Write dicts to a Trio file","ioWriteTrio(dicts, handle)","code" "In Axon language, Write an Axon data structure to RDF Turtle format","ioWriteTurtle(data, handle)","code" "In Axon language, Write value to a Xeto text format file","ioWriteXeto(value, handle)","code" "In Axon language, Write a grid to an XML file","ioWriteXml(grid, handle)","code" "In Axon language, Write a Grid to the Zinc format","ioWriteZinc(grid, handle)","code" "In Axon language, Read a zip file's entry listing, return a grid with cols","ioZipDir(handle)","code" "In Axon language, Return a I/O handle which may be used to read from a zip entry within a zip file","ioZipEntry(zipHandle, entryName)","code" "In Axon language, Encode an I/O handle into hexadecimal string","feature:name(ioHandle)","code" "In Axon language, Generate a CRC code using ioCrc with a handle and algorithm.","ioCrc(""foo"", ""CRC-32"")","code" "In Axon language, Wrap an I/O handle to GZIP compress and write CSV data.","readAll(site).ioWriteCsv(ioGzip(`io/sites.gz`))","code" "In Axon language, Wrap an I/O handle to GZIP uncompress and read CSV data.","ioGzip(`io/sites.gz`).ioReadCsv","code" "In Axon language, Encode a string to base64 using ioToBase64.","ioToBase64(""myusername:mysecret"")","code" "In Axon language, Encode a string to base64 without padding using URI safe characters in Axon.","ioToBase64(""myusername:mysecret"", {uri})","code" "In Axon language, Iterate over each row in a CSV file using ioEachCsv.","ioEachCsv(handle, opts, fn)","code" "In Axon language, Call ioEachCsv with a custom delimiter option.","ioEachCsv(handle, {delimiter:"";""}, fn)","code" "In Axon language, Read a Trio file into memory as a list of Dicts","trioRead(""filename.trio"")","code" "In Axon language, Write an Excel XLS file from a Grid value.","ioWriteExcel(myGrid, `output.xls`)","code" "In Axon language, Write multiple worksheets to an Excel XLS file from an array of Grids.","ioWriteExcel([grid1, grid2], `output.xls`)","code" "In Axon language, Write all records from a site to an Excel XLS file.","readAll(site).ioWriteExcel(`io/sites.xls`)","code" "In Axon language, Write an Axon data structure to HTML using ioWriteHtml.","ioWriteHtml(val, handle, opts: {})","code" "In Axon language, Create a new empty directory using ioCreate.","ioCreate(`io/new-dir/`)","code" "In Axon language, Create a new empty file using ioCreate.","ioCreate(`io/new-file.txt`)","code" "In Axon language, Generate a one-way hash of an I/O handle using the SHA-1 algorithm and encode it in Base64.","ioDigest(""foo"", ""SHA-1"").ioToBase64","code" "In Axon language, Move or rename a file or directory using ioMove.","ioMove(from, to)","code" "In Axon language, Copy a directory recursively to a new location","ioCopy(`io/dir/`, `io/dir-copy/`)","code" "In Axon language, Copy a file to a new file","ioCopy(`io/file.txt`, `io/file-copy.txt`)","code" "In Axon language, Copy a file and overwrite the destination if it exists","ioCopy(`io/file.txt`, `io/file-copy.txt`, {overwrite})","code" "In Axon language, Copy a file and do not overwrite the destination if it exists","ioCopy(`io/file.txt`, `io/file-copy.txt`, {overwrite:false})","code" "In Axon language, Write Axon code to render data to an SVG file using ioWriteSvg with default options.","read(power).hisRead(yesterday).ioWriteSvg(`io/example.svg`)","code" "In Axon language, Write Axon code to render data to an SVG file using ioWriteSvg with a custom size option.","read(power).hisRead(yesterday).ioWriteSvg(`io/example.svg`, {size:""600,400""})","code" "In Axon language, Read a stream of lines using InStream.eachLine","InStream.eachLine(stream, func)","code" "In Axon language, Write an Axon data structure to RDF JSON-LD format using ioWriteJsonLd.","ioWriteJsonLd(val, handle)","code" "In Axon language, Write an Axon data structure to RDF Turtle format using ioWriteTurtle.","ioWriteTurtle(val, handle)","code" "In Axon language, Configure an I/O handle to use UTF-16BE charset","ioCharset(`io/foo.txt`, ""UTF-16BE"")","code" "In Axon language, Write a string to a file using UTF-16BE charset","ioWriteStr(str, ioCharset(`io/foo.txt`, ""UTF-16BE""))","code" "In Axon language, Configure an I/O handle to use ISO-8859-1 charset","ioCharset(`io/foo.csv`, ""ISO-8859-1"")","code" "In Axon language, Read a CSV file using ISO-8859-1 charset","ioCharset(`io/foo.csv`, ""ISO-8859-1"").ioReadCsv","code" "In Axon language, Write a grid to an XML file","writeXml(file, grid)","code" "In Axon language, Use a feature namespace of definitions formatted as feature:name","feature:name","code" "In Axon language, Write a grid to a CSV file using the default options.","ioWriteCsv(myGrid, myHandle)","code" "In Axon language, Write a grid to a CSV file with a semicolon as the delimiter.","ioWriteCsv(myGrid, myHandle, {delimiter:"";""})","code" "In Axon language, Write a grid to a CSV file without including the header row.","ioWriteCsv(myGrid, myHandle, {noHeader:true})","code" "In Axon language, Write a grid to a CSV file using CRLF as the newline.","ioWriteCsv(myGrid, myHandle, {newline: ""\\r\\n""})","code" "In Axon language, Write a grid to a CSV file and strip units from all numbers.","ioWriteCsv(myGrid, myHandle, {stripUnits:true})","code" "In Axon language, Write all sites to a Trio file in the io directory","readAll(site).ioWriteTrio(`io/sites.trio`)","code" "In Axon language, Write all sites to a Trio string literal","readAll(site).ioWriteTrio("""")","code" "In Axon language, Export weather temperature history to a CSV file","read(weatherTemp).hisRead(pastMonth).ioWriteCsv(`io/point.csv`)","code" "In Axon language, Import history data from a CSV file and parse timestamps and values","ioReadCsv(`io/his.csv`).map(row => {ts: parseDateTime(row->ts, ""YYYY-MM-DD'T'hh:mm"", ""New_York""), val: parseNumber(row->val)}).hisWrite(hisId)","code" "In Axon language, Parse an oBIX XML document and map into name/value pairs","xmlRead(`http://obix.acme.com/obix/about`).xmlElems.map(x => {name:x.xmlAttr(""name"").xmlVal, val:x.xmlAttr(""val"").xmlVal})","code"