repl.it
@martyav/

Swift Square Golf

Swift

No description

fork
loading
Files
  • main.swift
main.swift
1
2
3
4
5
var c: String = "#"

// Change c to any non-whitespace character you like

[1,2,3].map{$0==2 ? print(c+" "+c) : print(c+c+c)}