Files
compiler-explorer/views/example.swift
T
Matt Godbolt db8bf4e520 Early support for swift. test with make EXTRA_ARGS="--language Swift"
Huge thanks to @adamnemecek for his help: this is mostly a
merge of his branch.
2017-06-19 19:40:46 -05:00

4 lines
91 B
Swift

// Type your code here, or load an example.
func square(n: Int) -> Int {
return n * n
}