Skip to content

Instantly share code, notes, and snippets.

Mark Schultz MarkQSchultz

  • Pluralsight
  • Lehi, UT
Block or report user

Report or block MarkQSchultz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AlphaBoard Privacy Policy
We collect no personal data of any kind.
We do not record or store keystrokes or any other usage data.
We collect no data.
Simply enjoy the use of the AlphaBoard Keyboard, knowing that your privacy is secure.
@MarkQSchultz
MarkQSchultz / MaxMinAssignment.swift
Created Jan 19, 2015
Assignment operators that max or min a value against a variable
View MaxMinAssignment.swift
infix operator >>>= {
associativity right
precedence 90
assignment
}
infix operator <<<= {
associativity right
precedence 90
assignment
@MarkQSchultz
MarkQSchultz / OptionalFilter.swift
Last active Aug 29, 2015
Optional unwrapping by condition (filter?) in Swift
View OptionalFilter.swift
extension Optional {
// Will return the value of optional if it is not nil and if the function `condition` evaluates to true.
// Otherwise, returns nil
func filter(condition: T -> Bool) -> T? {
if let x = self {
if condition(x) {
return x
}
}
You can’t perform that action at this time.