Skip to content

Instantly share code, notes, and snippets.

@cm-kazup0n
Last active June 22, 2021 06:45
Show Gist options
  • Save cm-kazup0n/d5bea6772b65b5a685f3a27c15556187 to your computer and use it in GitHub Desktop.
Save cm-kazup0n/d5bea6772b65b5a685f3a27c15556187 to your computer and use it in GitHub Desktop.

https://twitter.com/wonderful_panda/status/1406850885171380225

[空文字]

cabal repl -b split
> import Data.List.Split
Prelude Data.List.Split
> splitOn "," ""
[""]
> amm
Loading...
Welcome to the Ammonite Repl 2.1.4 (Scala 2.13.2 Java 1.8.0_242)
@ "".split(",")
res0: Array[String] = Array("")
Python 3.7.5 (default, Nov  6 2019, 10:36:14)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ''.split(',')
['']
deno
Deno 1.0.0
exit using ctrl+d or close()
> ''.split(',')
[ "" ]

Nil

pry
[1] pry(main)> ''.split(',')
=> []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment