Even or odd: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Minor tidy)
imported>Regattaguru
Line 4,188: Line 4,188:
return true
return true
}</syntaxhighlight>
}</syntaxhighlight>
=={{header|Swift}}==
<syntaxhighlight lang="swift">
// Swift has Int.isMultiple(of:Int) -> Bool

var isEven: (_:Int) -> Bool = {$0.isMultiple(of: 2)}
</syntaxhighlight>


=={{header|Symsyn}}==
=={{header|Symsyn}}==