Another update from ingydotnet^djgoku

This commit is contained in:
Ingy döt Net 2015-11-18 06:14:39 +00:00
parent 91df62d461
commit 948b86eafa
7604 changed files with 108452 additions and 22726 deletions

View file

@ -1,12 +1,12 @@
#include<stdio.h>
typedef (void *callbackfunc)(const char *);
typedef void (*callbackfunc)(const char *);
void doprint(const char *s) {
printf("%s.", s);
}
void tokenize(char *s, char delim, callbackfunc *cb) {
void tokenize(char *s, char delim, callbackfunc cb) {
char *olds = s;
char olddelim = delim;
while(olddelim && *s) {

View file

@ -0,0 +1,7 @@
s = "Hello,How,Are,You,Today"
a = split(s, ",")
t = join(a, ".")
println("The string \"", s, "\"")
println("Splits into ", a)
println("Reconstitutes to \"", t, "\"")

View file

@ -0,0 +1,2 @@
words: "," \: "Hello,How,Are,You,Today"
"." /: words

View file

@ -0,0 +1,2 @@
val input = "Hello,How,Are,You,Today"
println(input.splitBy(",").join("."))

View file

@ -0,0 +1,2 @@
words: "," vs "Hello,How,Are,You,Today"
"." sv words

View file

@ -0,0 +1,2 @@
| s = 'Hello,How,Are,You,Today' |
((s splitOn: ',') joinUsing: '.') printLine.

View file

@ -1 +1,2 @@
WScript.Echo Join(Split("Hello,How,Are,You,Today", ","), ".")
s = "Hello,How,Are,You,Today"
WScript.StdOut.Write Join(Split(s,","),".")