开发者

list of string in prolog

开发者 https://www.devze.com 2023-02-01 15:45 出处:网络
H开发者_Go百科ow i can break the list of stringinto two halves to process these halvesFor example with code similar to:

H开发者_Go百科ow i can break the list of string into two halves to process these halves


For example with code similar to:

length(String, L),
H is L // 2,
length(First_Half, H),
append(First_Half, Second_Half, String)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号