Title: Control/Extend.lua: table.unpack is Lua 5.2+ (undefined on 5.1), and arrayExtend is off-by-one · Issue #2 · purescript-lua/purescript-lua-control · GitHub
Open Graph Title: Control/Extend.lua: table.unpack is Lua 5.2+ (undefined on 5.1), and arrayExtend is off-by-one · Issue #2 · purescript-lua/purescript-lua-control
X Title: Control/Extend.lua: table.unpack is Lua 5.2+ (undefined on 5.1), and arrayExtend is off-by-one · Issue #2 · purescript-lua/purescript-lua-control
Description: Surfaced when the dev shell was pinned to Lua 5.1 (the pslua target); the fork previously tested on Lua 5.3, which hid this. src/Control/Extend.lua arrayExtend used f(table.unpack(xs, i+1)): table.unpack does not exist in Lua 5.1 (it is ...
Open Graph Description: Surfaced when the dev shell was pinned to Lua 5.1 (the pslua target); the fork previously tested on Lua 5.3, which hid this. src/Control/Extend.lua arrayExtend used f(table.unpack(xs, i+1)): table....
X Description: Surfaced when the dev shell was pinned to Lua 5.1 (the pslua target); the fork previously tested on Lua 5.3, which hid this. src/Control/Extend.lua arrayExtend used f(table.unpack(xs, i+1)): table....
Opengraph URL: https://github.com/purescript-lua/purescript-lua-control/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Control/Extend.lua: table.unpack is Lua 5.2+ (undefined on 5.1), and arrayExtend is off-by-one","articleBody":"Surfaced when the dev shell was pinned to Lua 5.1 (the pslua target); the fork previously tested on Lua 5.3, which hid this.\n\n`src/Control/Extend.lua` `arrayExtend` used `f(table.unpack(xs, i+1))`:\n- `table.unpack` does not exist in Lua 5.1 (it is `unpack` in 5.1, `table.unpack` from 5.2) → runtime nil-call on the 5.1 target.\n- It also spread the tail as varargs and was off-by-one, whereas `extend :: (Array a -> b) -> Array a -> Array b` takes a single Array argument.\n\nFix: build the suffix sub-array with an explicit loop (no unpack) and pass it as one Array. Also the FFI value needed the paren-wrapped `(function ... end)` shape the pslua linker accepts.\n\nFixed together with the Lua-5.1 pin in the tooling-alignment PR #1 (the fix is coupled: CI cannot go green under 5.1 without it).","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-06-14T08:59:52Z","url":"https://github.com/purescript-lua/purescript-lua-control/issues/2"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45c75ba7-8493-e90e-f5d1-e9b6ce27d26b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C98C:26ECEB:99B2C9:C74031:6B00DFB7 |
| html-safe-nonce | cd0946dfbfa87fe6df920ca9cbb539130285796a3c0b135a5e7f51a933740544 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOThDOjI2RUNFQjo5OUIyQzk6Qzc0MDMxOjZCMDBERkI3IiwidmlzaXRvcl9pZCI6IjQ4NjI5NTQ5NTU3OTY5NjMyNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5a21d1ac403920e4147de55f580743ca4dcdd5e6801bd32254e0b21820f8f7c8 |
| hovercard-subject-tag | issue:4658518415 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-lua/purescript-lua-control/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8d7b0483b4748d8fc13d869f9ffd910b1bdca559bf05bda4602b1bf7d286fd4/purescript-lua/purescript-lua-control/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8d7b0483b4748d8fc13d869f9ffd910b1bdca559bf05bda4602b1bf7d286fd4/purescript-lua/purescript-lua-control/issues/2 |
| og:image:alt | Surfaced when the dev shell was pinned to Lua 5.1 (the pslua target); the fork previously tested on Lua 5.3, which hid this. src/Control/Extend.lua arrayExtend used f(table.unpack(xs, i+1)): table.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Unisay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-lua/purescript-lua-control git https://github.com/purescript-lua/purescript-lua-control.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 622143885 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 17881085 |
| octolytics-dimension-repository_parent_nwo | purescript/purescript-control |
| octolytics-dimension-repository_network_root_id | 17881085 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript-control |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width