[Nix-dev] Compare strings in filterAttrs

Fabian Schmitthenner nix-dev at schmitthenner.eu
Thu Mar 24 18:16:42 CET 2016


hm, <= should work, too

On 03/24/2016 02:57 PM, 4levels wrote:
> Oh my, Vladimir, that just did the trick!  I tried <= before but that
> fails.
>
> Thanks a million!
>
> Erik
>
> On Thu, Mar 24, 2016 at 3:31 PM Vladimír Čunát <vcunat at gmail.com
> <mailto:vcunat at gmail.com>> wrote:
>
>     On 03/24/2016 03:25 PM, 4levels wrote:
>     > I've been looking in the strings functions but I can't seem to
>     find any
>     > string comparision functions.  The only one I find is the
>     versionOlder
>     > function, but that doesn't seem to work to compare any 2 strings.
>
>     nix-repl> "foo" < "bar"
>     false
>
>     --Vladimir
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160324/289b3c61/attachment.html 


More information about the nix-dev mailing list