         ] if
     ] [
         2drop r> r> 2drop
-    ] if ;
+    ] if ; inline
 
 : find-nth ( seq quot n -- i elt )
-    0 -roll 0 (find-nth) ;
+    0 -roll 0 (find-nth) ; inline
 
 : find-nth-relative ( seq quot n offest -- i elt )
     >r [ find-nth ] 3keep 2drop nip r> swap pick
-    (find-relative) ;
+    (find-relative) ; inline
 
 : remove-blank-text ( vector -- vector' )
     [


: find-forms ( vector -- vector' )
    "form" over find-opening-tags-by-name
    over [ >r first2 r> find-between* ] curry map
    [ [ name>> { "form" "input" } member? ] filter ] map ;

: find-html-objects ( string vector -- vector' )
    find-opening-tags-by-name
    over [ >r first2 r> find-between* ] curry map ;

: form-action ( vector -- string )
    [ name>> "form" = ] find nip 

sequences.lib accessors io combinators http.client ;
IN: html.parser.analyzer

TUPLE: link attributes clickable ;

: scrape-html ( url -- vector )
    http-get parse-html ;

: (find-relative)
    [ >r + dup r> ?nth* [ 2drop f f ] unless ] [ 2drop f ] if ; inline

: find-relative ( seq quot n -- i elt )
    >r over [ find drop ] dip r> swap pick
    (find-relative) ; inline

: (find-all) ( n seq quot -- )
    2dup >r >r find-from [
        dupd 2array , 1+ r> r> (find-all)
    ] [
        r> r> 3drop
    ] if* ; inline

: find-all ( seq quot -- alist )
    [ 0 -rot (find-all) ] { } make ; inline

: (find-nth) ( offset seq quot n count -- obj )
    >r >r [ find-from ] 2keep 4 npick [
