Skip to content

Instantly share code, notes, and snippets.

@yamasushi
Created March 18, 2013 03:13
Show Gist options
  • Select an option

  • Save yamasushi/5184775 to your computer and use it in GitHub Desktop.

Select an option

Save yamasushi/5184775 to your computer and use it in GitHub Desktop.
; if-sxpath , if-car-sxpath が名前空間を渡せないので作った補助
(define-module sxpath-helper (extend sxml.sxpath)
(use komono-base)
(export if-car-sxpath if-sxpath )
)
(select-module sxpath-helper)
(define (if-sxpath xpath :optional (ns '()))
(if-listfn$ (sxpath xpath ns) ) )
(define (if-car-sxpath xpath :optional (ns '()))
(if-car-listfn$ (sxpath xpath ns) ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment