Memoize

BasicWerk   EC Support   Technique   Facebook  

20140615153519_factor_branch

factor_branch?_deep-filter

 
IN: scratchpad auto-use { "q" { 1 "16" } } [ [ number? not ]  [ branch? not ] bi  and ] deep-filter .
{ "q" "16" }
! as same as
IN: scratchpad auto-use { "q" { 1 "16" } } [ string? ] deep-filter .
{ "q" "16" }
 
IN: scratchpad auto-use { "q" { 1 "16" } } [ branch? not ] deep-filter .
{ "q" 1 "16" }
! as same as flatten
IN: scratchpad auto-use { "q" { 1 "16" } } flatten .
{ "q" 1 "16" }
 
IN: scratchpad auto-use { "q" { 1 "16" } } [ branch? ] deep-filter .
{ { "q" { 1 "16" } } { 1 "16" } }
IN: scratchpad auto-use { "q" { 1 "16" } } [ branch? ] deep-filter rest .
{ { 1 "16" } }
IN: scratchpad auto-use { "q" { 1 "16" } { 8 "ui" } } [ branch? ] deep-filter rest .
{ { 1 "16" } { 8 "ui" } }
 

 

http://docs.factorcode.org/content/word-branch__que__,sequences.deep.html

http://docs.factorcode.org/content/word-deep-filter,sequences.deep.html

 


© Shin Nakamura/BasicWerk 2014