mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
add eqStrings back..
svn path=/nixpkgs/trunk/; revision=14228
This commit is contained in:
parent
cb40899b8d
commit
8bf73286a4
@ -81,5 +81,7 @@ rec {
|
|||||||
else takeTillSlash (__sub left 1) (__add c 1) s; in
|
else takeTillSlash (__sub left 1) (__add c 1) s; in
|
||||||
takeTillSlash (__sub (__stringLength s) 1) 1 s;
|
takeTillSlash (__sub (__stringLength s) 1) 1 s;
|
||||||
|
|
||||||
|
# Compares strings not requiring context equality
|
||||||
|
# Obviously, a workaround but works on all Nix versions
|
||||||
|
eqStrings = a: b: (a+(substring 0 0 b)) == ((substring 0 0 a)+b);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user