Hi Stefan,

Nice work that could be very useful.
Regarding the command and arguments I have some thought.
It might be practical to follow a more programming language structure.
Like:

First[] >> slice[]
first[3] >> slice [0,2]last[] >> if you add the command length here the 
user can do: slice [length-1, length]last[3] >> slice[length-3, length]nth[2] 
>> slice [2,2] or slice[2]

butfirst[] *or* bf[] *or* rest[] >> slice[2, length]

butlast[2] *or* bl[2] >>slice [0, length-2]

You can do basically perform all table slicing if you know two commands, 
slice and length.

Goodluck, Okido


2014年1月4日土曜日 0時06分38秒 UTC+1 Stephan Hradek:
>
> https://github.com/Skeeve/TiddlyWiki5/tree/listops
>
> You can see it in action on http.//tiddlystuff.tiddlyspot.com in the 
> ListOps Tiddler.
>
> Base list
>    
>    - BookmarkletMacro
>    - LetWidget
>    - ListOps
>    - NewtiddlerWidget
>    - ReplacePragma
>    - UUIDmacro
>
>
> reverse[]reverses the list
>    
>    - UUIDmacro
>    - ReplacePragma
>    - NewtiddlerWidget
>    - ListOps
>    - LetWidget
>    - BookmarkletMacro
>
> first[]selects the first tiddler of the list (or the first n if the 
> operand is n)
>    
>    - BookmarkletMacro
>
> first[3]selects the first 3 tiddlers of the list
>    
>    - BookmarkletMacro
>    - LetWidget
>    - ListOps
>
> last[]selects the last tiddler of the list (or the last n if the operand 
> is n)
>    
>    - UUIDmacro
>
> last[3]selects the last 3 tiddlers of the list
>    
>    - NewtiddlerWidget
>    - ReplacePragma
>    - UUIDmacro
>
> nth[2]selects the n-th tiddler of the list. Selects the second here. 
> Defaults to n = 1.
>    
>    - LetWidget
>
> butfirst[] *or* bf[] *or* rest[] selects all but the first tiddler of the 
> list (or all but the first n if the operand is n)
>    
>    - LetWidget
>    - ListOps
>    - NewtiddlerWidget
>    - ReplacePragma
>    - UUIDmacro
>
> butfirst[2] *or* bf[2] *or* rest[2] selects all but the first 2 tiddlers 
> of the list
>    
>    - ListOps
>    - NewtiddlerWidget
>    - ReplacePragma
>    - UUIDmacro
>
> butlast[] *or* bl[]selects all but the last tiddler of the list (or all 
> but the last n if the operand is n)
>    
>    - BookmarkletMacro
>    - LetWidget
>    - ListOps
>    - NewtiddlerWidget
>    - ReplacePragma
>
> butlast[2] *or* bl[2]selects all but the last 2 tiddlers of the list
>    
>    - BookmarkletMacro
>    - LetWidget
>    - ListOps
>    - NewtiddlerWidget
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to