diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-02 16:46:59 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-02 16:46:59 -0800 |
commit | 78f7ed0303ea42fca8f4e1535ea800d12d2a80eb (patch) | |
tree | 0bded0822fcba8fdea5d6f318603ae324b70dac4 /examples/crossBuilds/simple/js/shared | |
parent | a33254276bd211bf33be86eeb871ddbfe36fdb47 (diff) | |
download | hands-on-scala-js-78f7ed0303ea42fca8f4e1535ea800d12d2a80eb.tar.gz hands-on-scala-js-78f7ed0303ea42fca8f4e1535ea800d12d2a80eb.tar.bz2 hands-on-scala-js-78f7ed0303ea42fca8f4e1535ea800d12d2a80eb.zip |
tweaked cross-build example
Diffstat (limited to 'examples/crossBuilds/simple/js/shared')
-rw-r--r-- | examples/crossBuilds/simple/js/shared/main/scala/simple/Simple.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/crossBuilds/simple/js/shared/main/scala/simple/Simple.scala b/examples/crossBuilds/simple/js/shared/main/scala/simple/Simple.scala new file mode 100644 index 0000000..d3b0278 --- /dev/null +++ b/examples/crossBuilds/simple/js/shared/main/scala/simple/Simple.scala @@ -0,0 +1,7 @@ +/*shared/main/scala/simple/Simple.scala*/ +package simple +object Simple{ + def formatTimes(timestamps: Seq[Long]): String = { + timestamps.map(Platform.format).mkString("\n") + } +}
\ No newline at end of file |