gpt4 book ai didi

cyclops.data.Zipper.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 17:24:31 38 4
gpt4 key购买 nike

本文整理了Java中cyclops.data.Zipper.<init>()方法的一些代码示例,展示了Zipper.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zipper.<init>()方法的具体详情如下:
包路径:cyclops.data.Zipper
类名称:Zipper
方法名:<init>

Zipper.<init>介绍

暂无

代码示例

代码示例来源:origin: aol/cyclops

public static <T> Zipper<T> of(ImmutableList<T> left, T value, ImmutableList<T> right){
  return new Zipper<>(left,value,right);
}
public static <T> Zipper of(ReactiveSeq<T> left, T value, ReactiveSeq<T> right){

代码示例来源:origin: aol/cyclops

public Zipper<T> left(T value){
  return new Zipper<>(left,value,right.prepend(point));
}
public Zipper<T> right(T value){

代码示例来源:origin: aol/cyclops

public Zipper<T> right(T value){
  return new Zipper<>(left.append(point),value,right);
}
public Zipper<T> deleteAllLeftAndRight() {

代码示例来源:origin: aol/cyclops

public Zipper<T> deleteAllLeftAndRight() {
  return new Zipper<>(LazySeq.empty(), point, LazySeq.empty());
}
public Option<Zipper<T>> deleteLeft() {

代码示例来源:origin: aol/cyclops

public static <T> Zipper of(ReactiveSeq<T> left, T value, ReactiveSeq<T> right){
  return new Zipper<>(LazySeq.fromStream(left),value, LazySeq.fromStream(right));
}

代码示例来源:origin: aol/cyclops

public <R> Option<Zipper<T>> next(){
  return right.fold(c-> Option.some(new Zipper(left.append(point), c.head(), c.tail())), nil-> Option.none());
}
public <R> Zipper<T> next(Zipper<T> alt){

代码示例来源:origin: aol/cyclops

public <R> Option<Zipper<T>> previous(){
  return left.fold(c-> Option.some(new Zipper(c.take(c.size()-1),c.last(null) ,right.prepend(point))), nil-> Option.none());
}

代码示例来源:origin: com.oath.cyclops/cyclops

public static <T> Zipper<T> of(ImmutableList<T> left, T value, ImmutableList<T> right){
  return new Zipper<>(left,value,right);
}
public static <T> Zipper of(ReactiveSeq<T> left, T value, ReactiveSeq<T> right){

代码示例来源:origin: com.oath.cyclops/cyclops

public Zipper<T> left(T value){
  return new Zipper<>(left,value,right.prepend(point));
}
public Zipper<T> right(T value){

代码示例来源:origin: com.oath.cyclops/cyclops

public Zipper<T> right(T value){
  return new Zipper<>(left.append(point),value,right);
}
public Zipper<T> deleteAllLeftAndRight() {

代码示例来源:origin: com.oath.cyclops/cyclops

public static <T> Zipper of(ReactiveSeq<T> left, T value, ReactiveSeq<T> right){
  return new Zipper<>(LazySeq.fromStream(left),value, LazySeq.fromStream(right));
}

代码示例来源:origin: com.oath.cyclops/cyclops

public Zipper<T> deleteAllLeftAndRight() {
  return new Zipper<>(LazySeq.empty(), point, LazySeq.empty());
}
public Option<Zipper<T>> deleteLeft() {

代码示例来源:origin: com.oath.cyclops/cyclops

public <R> Option<Zipper<T>> next(){
  return right.fold(c-> Option.some(new Zipper(left.append(point), c.head(), c.tail())), nil-> Option.none());
}
public <R> Zipper<T> next(Zipper<T> alt){

代码示例来源:origin: com.oath.cyclops/cyclops

public <R> Option<Zipper<T>> previous(){
  return left.fold(c-> Option.some(new Zipper(c.take(c.size()-1),c.last(null) ,right.prepend(point))), nil-> Option.none());
}

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com