diff --git a/extra/builder/util/util.factor b/extra/builder/util/util.factor index 320f0e0448..47db4c52c9 100644 --- a/extra/builder/util/util.factor +++ b/extra/builder/util/util.factor @@ -41,14 +41,6 @@ DEFER: to-strings : host-name* ( -- name ) host-name "." split first ; -! : datestamp ( -- string ) -! now `{ ,[ dup timestamp-year ] -! ,[ dup timestamp-month ] -! ,[ dup timestamp-day ] -! ,[ dup timestamp-hour ] -! ,[ timestamp-minute ] } -! [ pad-00 ] map "-" join ; - : datestamp ( -- string ) now { year>> month>> day>> hour>> minute>> } diff --git a/extra/newfx/newfx.factor b/extra/newfx/newfx.factor index 9cc63fd57e..825c70001e 100644 --- a/extra/newfx/newfx.factor +++ b/extra/newfx/newfx.factor @@ -1,5 +1,5 @@ -USING: kernel sequences assocs qualified circular sets ; +USING: kernel sequences assocs qualified circular sets fry sequences.lib ; USING: math multi-methods ; @@ -242,4 +242,11 @@ METHOD: as-mutate { object object assoc } set-at ; : insert ( seq i obj -- seq ) >r cut r> prefix append ; -: splice ( seq i seq -- seq ) >r cut r> prepend append ; \ No newline at end of file +: splice ( seq i seq -- seq ) >r cut r> prepend append ; + +! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +: purge ( seq quot -- seq ) [ not ] compose filter ; + +: purge! ( seq quot -- seq ) + dupd '[ swap @ [ pluck! ] [ drop ] if ] each-index ; diff --git a/extra/ui/commands/commands-docs.factor b/extra/ui/commands/commands-docs.factor index 134488fa8f..804236dadc 100644 --- a/extra/ui/commands/commands-docs.factor +++ b/extra/ui/commands/commands-docs.factor @@ -73,7 +73,7 @@ HELP: command-word HELP: command-map { $values { "group" string } { "class" "a class word" } { "command-map" "a " { $link command-map } " or " { $link f } } } { $description "Outputs a named command map defined on a class." } -{ $class-description "A command map stores a group of related commands. Instances of this class delegate to arrays so behave like sequences; additionally the " { $link command-map-blurb } " slot stores a string description of the command group, or " { $link f } "." +{ $class-description "A command map stores a group of related commands. The " { $snippet "commands" } " slot stores an association list mapping gestures to commands, and the " { $snippet "blurb" } " slot stores an optional one-line description string of this command map." $nl "Command maps are created by calling " { $link } " or " { $link define-command-map } "." } ; diff --git a/extra/ui/gadgets/buttons/buttons-docs.factor b/extra/ui/gadgets/buttons/buttons-docs.factor index 02ddcc3d8a..64cc7bd1c8 100755 --- a/extra/ui/gadgets/buttons/buttons-docs.factor +++ b/extra/ui/gadgets/buttons/buttons-docs.factor @@ -11,7 +11,7 @@ $nl HELP: