Memoize

BasicWerk   EC Support   Technique   Facebook  

20140726130027_factor_pair_array_sequence

factor_pair_array_sequence

 

 
IN: scratchpad auto-use { 1 2 3 4 } pair? .
f
 
! pair? は2要素の array の時に t
IN: scratchpad auto-use { 1 2 } pair? .
t
 
! あくまで array
IN: scratchpad auto-use "aa" pair? .
f
 
! "aa" >array -> { 97 97 }
IN: scratchpad auto-use "aa" >array pair? .
t
 
! qw{ a a a } -> { "a" "a" "a" }
IN: scratchpad auto-use qw{ a a a } array? .
t
 
IN: scratchpad auto-use "aaa" array? .
f
 
! 文字列は sequence
IN: scratchpad auto-use "aaa" sequence? .
t
 
! string? も用意されてる
IN: scratchpad auto-use "aaa" string? .
t
 

 

#factorcode


© Shin Nakamura/BasicWerk 2014