Merge branch 'master' of git://factorcode.org/git/factor
commit
fc5d53327d
|
@ -22,8 +22,13 @@ MACRO: firstn ( n -- )
|
|||
bi prefix '[ _ cleave ]
|
||||
] if ;
|
||||
|
||||
MACRO: npick ( n -- )
|
||||
1- dup saver [ dup ] rot [ r> swap ] n*quot 3append ;
|
||||
: npick-wrap ( quot n -- quot )
|
||||
dup 1 >
|
||||
[ swap '[ _ dip swap ] swap 1 - npick-wrap ]
|
||||
[ drop ]
|
||||
if ;
|
||||
|
||||
MACRO: npick ( n -- quot ) [ dup ] swap npick-wrap ;
|
||||
|
||||
MACRO: ndup ( n -- )
|
||||
dup '[ _ npick ] n*quot ;
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
USING: math.ranges sequences random accessors combinators.lib
|
||||
kernel namespaces fry db.types db.tuples urls validators
|
||||
html.components html.forms http http.server.dispatchers furnace
|
||||
furnace.actions furnace.boilerplate furnace.redirection ;
|
||||
furnace.actions furnace.boilerplate furnace.redirection
|
||||
furnace.utilities ;
|
||||
IN: webapps.wee-url
|
||||
|
||||
TUPLE: wee-url < dispatcher ;
|
||||
|
|
Loading…
Reference in New Issue