Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (string-split str sep)
- (if (null? (string->list str))
- '()
- (if (equal? (car (string->list str)) (string->list sep))
- (string-split (list->string (cdr ( string->list str))) sep)
- (list->string (append (string->list (string-split (list->string (cdr (string->list str))) sep)))))))
- (string-split "x;y;z" ";")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement