示例#1
0
 /// <summary>
 /// Makes a shallow clone of an object, setting or overriding the nodes requiredto create the given path, and placing the specific value at the tail end ofthat path. Note that this copies and flattens prototype properties onto thenew object as well. All non-primitive properties are copied by reference.
 /// <para />
 /// sig: [Idx] -> a -> {a} -> {a}
 /// </summary>
 /// <param name="path">the path to set</param>
 /// <param name="val">The new value</param>
 /// <param name="obj">The object to clone</param>
 /// <returns>A new object equivalent to the original except along the specified path.</returns>
 /// <see cref="R.DissocPath"/>
 public static dynamic AssocPath(IList <object> path, RamdaPlaceholder val = null, RamdaPlaceholder obj = null)
 {
     return(Currying.AssocPath(path, val, obj));
 }
示例#2
0
 /// <summary>
 /// Makes a shallow clone of an object, setting or overriding the nodes requiredto create the given path, and placing the specific value at the tail end ofthat path. Note that this copies and flattens prototype properties onto thenew object as well. All non-primitive properties are copied by reference.
 /// <para />
 /// sig: [Idx] -> a -> {a} -> {a}
 /// </summary>
 /// <param name="path">the path to set</param>
 /// <param name="val">The new value</param>
 /// <param name="obj">The object to clone</param>
 /// <returns>A new object equivalent to the original except along the specified path.</returns>
 /// <see cref="R.DissocPath"/>
 public static dynamic AssocPath <TValue, TTarget>(RamdaPlaceholder path, TValue val, TTarget obj)
 {
     return(Currying.AssocPath(path, val, obj));
 }
示例#3
0
 /// <summary>
 /// Makes a shallow clone of an object, setting or overriding the nodes requiredto create the given path, and placing the specific value at the tail end ofthat path. Note that this copies and flattens prototype properties onto thenew object as well. All non-primitive properties are copied by reference.
 /// <para />
 /// sig: [Idx] -> a -> {a} -> {a}
 /// </summary>
 /// <param name="path">the path to set</param>
 /// <param name="val">The new value</param>
 /// <param name="obj">The object to clone</param>
 /// <returns>A new object equivalent to the original except along the specified path.</returns>
 /// <see cref="R.DissocPath"/>
 public static dynamic AssocPath <TTarget>(IList <object> path, RamdaPlaceholder val, TTarget obj)
 {
     return(Currying.AssocPath(path, val, obj));
 }
示例#4
0
 /// <summary>
 /// Makes a shallow clone of an object, setting or overriding the nodes requiredto create the given path, and placing the specific value at the tail end ofthat path. Note that this copies and flattens prototype properties onto thenew object as well. All non-primitive properties are copied by reference.
 /// <para />
 /// sig: [Idx] -> a -> {a} -> {a}
 /// </summary>
 /// <param name="path">the path to set</param>
 /// <param name="val">The new value</param>
 /// <param name="obj">The object to clone</param>
 /// <returns>A new object equivalent to the original except along the specified path.</returns>
 /// <see cref="R.DissocPath"/>
 public static dynamic AssocPath <TValue, TTarget>(IList <object> path, TValue val, TTarget obj)
 {
     return(Currying.AssocPath(path, val, obj));
 }