修改数据结构(如树)内部的值,除了遍历之外有没有什么比较好的办法
记录下路径?每次都从树根开始的话比较浪费,有没有更好的办法?
Zipper
A pair that contains a focused part of a data structure and its surroundings is called a zipper
1 | data Crumb a = LeftCrumb a (Tree a) | RightCrumb a (Tree a) deriving (Show) |
修改数据结构(如树)内部的值,除了遍历之外有没有什么比较好的办法
记录下路径?每次都从树根开始的话比较浪费,有没有更好的办法?
A pair that contains a focused part of a data structure and its surroundings is called a zipper
1 | data Crumb a = LeftCrumb a (Tree a) | RightCrumb a (Tree a) deriving (Show) |
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true