mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 09:49:24 +03:00
Add javascript FFI for fastUnpack
(#816)
This commit is contained in:
parent
13cc27da1f
commit
9e22a6e07b
@ -20,6 +20,7 @@ foldl1 f (x::xs) = foldl f x xs
|
||||
-- If you need to unpack strings at compile time, use Prelude.unpack.
|
||||
%foreign
|
||||
"scheme:string-unpack"
|
||||
"javascript:lambda:(str)=>__prim_js2idris_array(Array.from(str))"
|
||||
export
|
||||
fastUnpack : String -> List Char
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user