When you use it, make sure you turn on the left pane (it’s off right after you pulled since UI settings are .gitignored). As you see above, this playground consists of multiple pages and sources.
with your playground
Just drop interval.swift to Sources. In git Interval.playground/Sources/interval.swift is a symlink thereto.
REPL via command line:
OS X with Xcode
git clone https://github.com/dankogai/swift-interval.git
cd swift-interval
make repl
Linux
git clone https://github.com/dankogai/swift-interval.git
cd swift-interval
make SWIFTPATH=${YOUR_SWIFT_PATH} repl # ${YOUR_SWIFT_PATH}=~/swift/usr/bin in my case
swift-interval
Interval Arithmetic in Swift with Interval Type
Synopsis
Prerequisite
Swift 5.0 or better, OS X or Linux.
Usage
in your project:
Just add interval.swift to it.
with playground
Have fun with Interval.playground that is a part of this git repo.
When you use it, make sure you turn on the left pane (it’s off right after you pulled since UI settings are
.gitignore
d). As you see above, this playground consists of multiple pages and sources.with your playground
Just drop interval.swift to
Sources
. In gitInterval.playground/Sources/interval.swift
is a symlink thereto.REPL via command line:
OS X with Xcode
Linux
Prerequisite
Swift 5 or better, OS X or Linux to build.