This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Combine | |
/* | |
# References | |
- [ra1028/SwiftUI-Combine: This is an example project of SwiftUI and Combine using GitHub API.](https://github.com/ra1028/SwiftUI-Combine) | |
- [marty-suzuki/GitHubSearchWithSwiftUI: SwiftUI and Combine based GitHubSearch example.](https://github.com/marty-suzuki/GitHubSearchWithSwiftUI) | |
- [DataTaskPublisherを作ってみた](https://gist.github.com/yamoridon/16c1cc70ac46e50def4ca6695ceff772) | |
- [【iOS】Combineフレームワークまとめ(2019/6/9時点) - Qiita](https://qiita.com/shiz/items/5efac86479db77a52ccc) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class A0 { } | |
class A1: A0 { } | |
class A2: A1 { } | |
class Array<X> { | |
func get() -> X { fatalError() } | |
func set(x: X) -> () { fatalError() } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func foldr<A : SequenceType, B>(xs: A, y: B, f: (A.Generator.Element, () -> B) -> B) -> B { | |
var g = xs.generate() | |
var next: () -> B = {y} | |
next = { return g.next().map {x in f(x, next)} ?? y } | |
return next() | |
} | |
foldr([1, 2, 3, -4, -5, 6], "") {a, b in | |
println(a) | |
return a < 0 ? toString(a) : b() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modified from tutorials/lesson_02.cpp and test/vectorize.cpp | |
// On linux, you can compile and run it like so: | |
// g++ -I ../include -L ../bin -lHalide -lpthread -ldl -lpng blur.cpp | |
// LD_LIBRARY_PATH=../bin ./lesson_02 | |
// On os x: | |
// g++ -I ../include -L ../bin -lHalide `libpng-config --cflags --ldflags` blur.cpp | |
// DYLD_LIBRARY_PATH=../bin ./lesson_02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Gitignore for files generated by Xilinx ISE | |
*.log | |
*.svf | |
*.scr | |
*.cmd | |
*.bak | |
*.lso | |
*.elf | |
*.ace |