Swiftpack.co -  tlazenka/swona as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
tlazenka/swona
A Swift port of the Siilinkari language and VM
.package(url: "https://github.com/tlazenka/swona.git", from: "0.0.2")

Swona

A Swift port of the lovely Siilinkari.

Launch the REPL

cd Repl && swift run && cd -

or

docker-compose run --rm repl

Example

var a = stringArrayOfSize(3, "")
var done = false
var i = 0

while (!done) { stringArraySet(a, i, "item" + i); i = i + 1; if (i==stringArrayLength(a)) done=true }

stringArrayGet(a, 2)

fun pow(a: Int, n: Int): Int = unless (n == 0 ) a * pow(a, n-1) else 1

pow(2, 8)

More in the Prelude.

Run the tests

swift test

or

docker-compose run --rm tests

Acknowledgements

Juha Komulainen and others listed in the LICENSE.

GitHub

link
Stars: 2
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Initial
2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API