Created
September 23, 2017 14:43
-
-
Save greymd/2ba67e6c4c3f09eecdc57a31599fc461 to your computer and use it in GitHub Desktop.
Convert Collection to Array in Egison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define $collection2array | |
1#(generate-array (nth $ %1) [1 (length %1)])) | |
; > (collection2array {a b c}) | |
; (|a b c|) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment