> However, how to do it when I don't know the exact length of the array?
> Is `"norm" { [ nfc ] [ nfd ] [ nfkc ] [ nfkd ] } [ cleave ] keep
> length narray .` idiomatic?

narray is a macro which means that its stack effect is being figured
out at compile time. But the length of an array is runtime computed.
So that code should give "Cannot apply “narray” to a run-time computed
value macro narray".

When you dont know the length of the array of words to apply, I would
have no qualms writing something like this:

    "hello" { nfc nfd nfkc nfkd } [ execute( x -- x ) ] with map


-- 
mvh/best regards Björn Lindqvist

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to