PageRenderTime 49ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/guile/multimap/runme.scm

#
Lisp | 30 lines | 16 code | 9 blank | 5 comment | 0 complexity | 3d1328c09f36919c64dba9987f3df222 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. ;;; Test out some multi-argument typemaps
  2. (use-modules (example))
  3. ; Call the GCD function
  4. (define x 42)
  5. (define y 105)
  6. (define g (gcd x y))
  7. (display "The gcd of ")
  8. (display x)
  9. (display " and ")
  10. (display y)
  11. (display " is ")
  12. (display g)
  13. (newline)
  14. ; Call the gcdmain() function
  15. (gcdmain #("gcdmain" "42" "105"))
  16. ; Call the count function
  17. (display (count "Hello World" #\l))
  18. (newline)
  19. ; Call the capitalize function
  20. (display (capitalize "hello world"))
  21. (newline)