Hi Alex
Thank you very much for the elaboration. It helps a lot.
Best Regards
Dean

On 18 February 2017 at 08:11, Alexander Burger <[email protected]> wrote:

> Hi Lindsay,
>
> >    (glue C (filter '((E) E) (split (chop S) C))))
>
> I would do the same.
>
> Just one minor improvement:
>
> Because calling an EXPR function like ((E) E) is relatively expensive, I
> generally recommend to use 'prog' for the identity function:
>
>    (glue C (filter prog (split (chop S) C))))
>
>    : ('((E) E) 123)
>    -> 123
>
>    : (prog 123)
>    -> 123
>
>
> In the above case, where we just filter the list and and thus just need a
> boolean result, I'd use 'bool':
>
>    (glue C (filter bool (split (chop S) C))))
>
> ♪♫ Alex
> --
> UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
>

Reply via email to