Skip to content

Instantly share code, notes, and snippets.

@jrsonline
Last active January 26, 2018 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrsonline/dfd193683bc76f3a278c283f5ece4d2e to your computer and use it in GitHub Desktop.
Save jrsonline/dfd193683bc76f3a278c283f5ece4d2e to your computer and use it in GitHub Desktop.
functor_sequences
print( linkedList^.fmap { $0 % 2 == 0 }.fmap { $0 ? "yes" : "no" }.toLinkedList )
print( regularArray^.fmap { $0 % 2 == 0 }.fmap { $0 ? "yes" : "no" }.toArray )
print( tree^.fmap { $0 % 2 == 0 }.fmap { $0 ? "yes" : "no" }.toTree )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment