ArkScript v4.7.0-1
Pre-release
Pre-release
Immutable
release. Only release title and notes can be modified.
Added
- new builtin to extract the bytes of a string: builtin__string:bytes
- new builtins
builtin__time:asUTCDateandbuiltin__time:parseDateto convert a timestamp to a date, and parse a string date as a timestamp - standard library
- math:fromBase to convert a number from a given base to base 10
- string:surrogate? and string:privateUse? to check if a Unicode character is in one of those planes
- list:findAfter to search for an element in a list after a given index
- list:findIf to search for an element in a list using a predicate
- list:search to search for a set of contiguous elements in a list
- list:minMax to get the minimum and maximum values of a list of numbers in a single call
- list:sorted? to check if a list is sorted
- list:lowerBound, list:upperBound
- list:binarySearch
- list:shiftLeft, list:shiftRight
- datetime library
- timezoneOffsets
- utcOffsetMinutes
- makeUTCTimestamp
- timestamps: year0, year1970, year200
- toUTCTimestamp
- asUTCDate
- plusSeconds, minusSeconds
- plusMinutes, minusMinutes
- plusHours, minusHours
- plusDays, minusDays
- plusWeeks, minusWeeks
- plusMonths, minusMonths
- plusYears, minusYears
- atStartOfDay, atEndOfDay
- today, yesterday, tomorrow
- nextDay, previousDay
- delta, asDelta
- asSeconds
- plusDelta, minusDelta
- year, month, day, hour, minute, second, millisecond, dayOfWeek, dayOfYear
- leapYear?
- monthLength, yearLength
- utcOffsetRepr
- asISO8601
- parse, parseAs
- std.Colours
- new escape sequences:
\0xx(octal escape sequences using 2 chars) and\xyz(hex escape sequences using 2 chars)
Changed
- math:toBase handles 0 correctly
- math:countDigits returns 1 for 0
- builtin__list:find can take an optional third argument, to specify at which index to start looking from