lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it possible to use @Pipe in a def?


From: Mark Summerfield
Subject: Is it possible to use @Pipe in a def?
Date: Tue, 26 Jun 2018 08:40:52 +0100

Hi,

In the user manual it has this example:

@ID lines @Break "sort" @Pipe {
Gaskell, Elizabeth
Lawrence, D. H.
Austen, Jane
Dickens, Charles
}

This works fine for me on Linux.

However, when I try to make it into a symbol:

import @BasicSetup
def @SortedLines right x{
    lines @Break "sort" @Pipe{x}
}

And then use it:

@ID @SortedLines{
Gaskell, Elizabeth
Lawrence, D. H.
Austen, Jane
Dickens, Charles
}

It just prints the original lines unsorted.

Is it possible to make such a symbol? Or is there a workaround?

-- 
Mark Summerfield, Qtrac Ltd.
    ComparePDF - easy to use fast PDF comparison tool
        http://www.qtrac.eu/comparepdf.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]