擬似lsの実装
Posted feedbacks - StandardML
#4465も対処済み。
1 2 3 4 5 6 7 8 | fun ls x y =
let
fun uniq l = foldr (fn (b, a) => b :: List.filter (fn x => x <> b) a) [] l
val p = y ^ (if String.isSuffix "/" y then "" else "/")
in
(uniq o map (subst "/.*" "/" o subst p "") o List.filter (String.isPrefix p)) x
end
|


ところてん
#4212()
Rating1/3=0.33
[ reply ]