Welcome to the CHICKEN Scheme pasting service

The only legit way to print 666 added by alexshendi on Fri Sep 18 23:50:13 2020

(define (foldl proc init lst)
  (let loop ((lst lst) (r init))
    (if (null? lst) 
        r
        (loop (cdr lst) (proc r (car lst))))))

(define (numeric-value str)
  (let ((l (string->list str))
        (t '((#\C 100) (#\D 500) (#\I 1) (#\L 50) (#\M 1000)            
             (#\U 5) (#\V 5))))
     (foldl (lambda (s x) 
              (let ((r (assoc x t)))
                (if r 
                    (+ (cadr r) s)
                    s)))
              0
              (map char-upcase l))))

(define (go)
   (display (numeric-value "vicarius filii dei"))
   (newline)
   0))
(go)
            

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which egg provides `string-pad-right'?
Visually impaired? Let me spell it for you (wav file) download WAV