You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darklang's "standard library" is the suite of things (like many List functions) that the Dark team volunteers to steer and maintain, as opposed to functionality non-core, best designed and implemented by users. Much of these stdlib functionality is supported by Builtins for lower-level operations.
This issue is to organize work related to Darklang's "standard library."
Most of the tasks here are accessible to contributors, especially with a bit of discussion.
Date should be clear what granularity is available
Are two Dates with the same second the same? Let's make sure they are, or expose enough detail so users can see why (eg, ticks or milliseconds or whatever).
Darklang's "standard library" is the suite of things (like many
List
functions) that the Dark team volunteers to steer and maintain, as opposed to functionality non-core, best designed and implemented by users. Much of these stdlib functionality is supported by Builtins for lower-level operations.This issue is to organize work related to Darklang's "standard library."
Most of the tasks here are accessible to contributors, especially with a bit of discussion.
Numerics and Math
Strings
String.trimStart
andString.trimEnd
toLower
/toUpper
(see Support "full" case mapping in Strings: toLower/toUpper #3437)Date and Time
Date::subtract
which returns a timespanCollections
List.shuffle
List.remove
(some ergonomic way of removing an item)List.dropFirst
if we don't have it alreadyList.indexOf
Bytes
Bytes.contains
Bytes.toList
Bytes.map
Base64.urlEncode
Bytes.slice
builtinBytes.drop
(usingBytes.slice
)Bytes.take
(usingBytes.slice
)Bytes.append
/Bytes.concat
Bytes.reverse
Bytes.containsSegment
Bytes.startsWith
,Bytes.endsWith
(segment)Bytes.find
Bytes.indexOf
Bytes.lastIndexOf
Bytes.trim
Bytes.replace
(either single byte or a segment of bytes)URLs
Misc
The text was updated successfully, but these errors were encountered: