Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -0,0 +1,5 @@
shared void tokenizeAString() {
value input = "Hello,How,Are,You,Today";
value tokens = input.split(','.equals);
print(".".join(tokens));
}

View file

@ -0,0 +1,4 @@
> (set split (string:tokens "Hello,How,Are,You,Today" ","))
("Hello" "How" "Are" "You" "Today")
> (string:join split ".")
"Hello.How.Are.You.Today"

View file

@ -0,0 +1,9 @@
input = "Hello,How,Are,You,Today"
_player.itemDelimiter = ","
output = ""
repeat with i = 1 to input.item.count
put input.item[i]&"." after output
end repeat
delete the last char of output
put output
-- "Hello.How.Are.You.Today"

View file

@ -0,0 +1,5 @@
import strutils
let text = "Hello,How,Are,You,Today"
let tokens = text.split(',')
echo tokens.join(" ")

View file

@ -0,0 +1 @@
"Hello,How,Are,You,Today" wordsWith(',') println

View file

@ -0,0 +1 @@
?split("Hello,How,Are,You,Today",',')

View file

@ -0,0 +1 @@
see substr("Hello,How,Are,You,Today", ",", ".")

View file

@ -0,0 +1 @@
'Hello,How,Are,You,Today'.split(',').join('.').say;

View file

@ -0,0 +1,5 @@
let text = "Hello,How,Are,You,Today"
let tokens = text.characters.split(",").map{String($0)} // for single-character separator
print(tokens)
let result = tokens.joinWithSeparator(".")
print(result)

View file

@ -0,0 +1,5 @@
let text = "Hello,How,Are,You,Today"
let tokens = split(text, { $0 == "," }) // for single-character separator
println(tokens)
let result = ".".join(tokens)
println(result)

View file

@ -0,0 +1,5 @@
import Foundation
let text = "Hello,How,Are,You,Today"
let tokens = text.componentsSeparatedByString(",")
print(tokens)

View file

@ -0,0 +1,8 @@
decl string text
set text "Hello,How,Are,You,Today"
decl string<> tokens
set tokens (split text ",")
for (decl int i) (< i (size tokens)) (inc i)
out tokens<i> "." console
end for
out endl console

View file

@ -0,0 +1 @@
@join "." @split "," "Hello,How,Are,You,Today"

View file

@ -0,0 +1 @@
split(",") | join(".")

View file

@ -0,0 +1,3 @@
$ jq -r 'split(",") | join(".")'
"Hello,How,Are,You,Today"
Hello.How.Are.You.Today