Run Swift

// Initialize the Arrays let a1 = [1, 2, 3] let a2 = [2, 3, 1] // Check if they are the same if a1==a2 { print("S1 is the same as S2") } else { print("S1 is not the same as S2") }

  

Foundation framework not available
Swift version 4.0.3
@ Ubuntu 16.04
 

Run Swift is a web tool where you can easily try Apple's Swift language online. Just paste any snippet and click    Run . You may also    Save  your scripts and/or share with the world. If what you're looking for is an easy-to-use tool for your Mac, to quickly test and run Swift code, then you may want to have a look at our Run Swift app for MacOS.


Find answers here

Hi there! Ask Us a Question We are ready to help