Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. (define (string-split str sep)
  2. (if (null? (string->list str))
  3. '()
  4. (if (equal? (car (string->list str)) (string->list sep))
  5. (string-split (list->string (cdr ( string->list str))) sep)
  6. (list->string (append (string->list (string-split (list->string (cdr (string->list str))) sep)))))))
  7. (string-split "x;y;z" ";")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement