diff --git a/.gitignore b/.gitignore index 145d71b..da5db42 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ !.gitignore !profile/ !profile/README.md +!profile/*.svg .claude/ diff --git a/profile/README.md b/profile/README.md index 3e8e312..62f22bf 100644 --- a/profile/README.md +++ b/profile/README.md @@ -2,16 +2,7 @@ Fink is a functional programming language designed to be ergonomic, consistent, and practical — applying FP principles without being dogmatic. -```fink -process = fn items: - items - | filter is_valid - | map fn item: - match parse item: - Ok value: value * 2 - Err e: log 'skipping ${item}: ${e}' - | [..?] -``` +Fink code example ## Key characteristics diff --git a/profile/example.svg b/profile/example.svg new file mode 100644 index 0000000..e9284d6 --- /dev/null +++ b/profile/example.svg @@ -0,0 +1,72 @@ + + + + + + + 1 + process + = + fn + items: + + + 2 + items + + + 3 + | + filter + is_valid + + + 4 + | + map + fn + item: + + + 5 + match + parse + item: + + + 6 + Ok + value: + value + * + 2 + + + 7 + Err + e: + log + 'skipping + ${item} + : + ${e} + ' + + + 8 + | + [..?] + + + 9 +