search/
Start typing to search packages!
package_2
diff-sequences
By @eyycheev
Roblox
Mirroreddiff-sequences
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/diff-sequences
Compare items in two sequences to find a longest common subsequence.
:pencil2: Notes
- :x: Property tests and performance tests from upstream are not included.
- :warning: Lua does not allow indexing into strings, the consumer is expected to handle the input types in
isCommonandfoundSubsequence.- A
stringToArrayfunction is implemented to convert input strings to arrays for tests. - Substring tests are done using arrays of characters instead. The substring comparison methods are omitted.
- A
- Lua is 1 indexed so array indices are replaced with
index + 1. - Uses of
NOT_YET_SETare replaced with just a 0 since this is a JS-specific workaround. - Lua treats
0as a true value sonChange || baDeltaLengthneeds to be written asnChange ~= 0 and nChange or baDeltaLength.
Package Details
Install command (Click to copy)
Version
3.14.0-rbx.2
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
