HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📌
hkob's Notion
/
ℹ️
逆引きFormula 2.0
/
📓
map
📓

map

Formula 2.0
Formula 2.0
関数形式の文法(演算子も含む)
map(list, current.method())
メソッド形式の文法
list.map(current.method())
演算子形式の文法
入力の型
List
formula解説
https://hkob.hatenablog.com/entry/2024/06/03/050000
返り値の型
List
作成日時
Sep 6, 2023 08:26 PM
逆引き Formula 利用例
🔗
カテゴリごとに集計するには? (Formula 2.0)
説明
入力リスト内のすべての項目に対して式を呼び出した結果が入力されたリストを返します。
注記 (変更点)
リストに対する新規関数です。current 一時変数でリストの要素の値、index 一時変数でリストの要素の番号が参照できます。
Number, current + value
名前
func
method
list
value
0
0
5
5
-2
-2
空白
String, current + value
名前
func
method
list
value
abcd
abcd
abc
abc
def
def
Date, current.dateBetween(date, “days”)
名前
func
method
list
date
1/1
Jan 1, 2023 00:00
1/1
Jan 1, 2023
2/1
Feb 1, 2023
空白
-1
Checkbox, current != value
名前
func
method
list
value
反転
value
反転しない
value
Relation : map(current.数値)
名前
func
method
数値
一つのみ
A-1
100
複数のリレーション
B-1
1,000
B-2
2,000
空