Jump to content

File:Haskell-moore-rose-1.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 512 × 438 pixels, file size: 4 KB)

Summary

Description

Non-well-founded rose tree according to Haskell Data.Tree module

import Data.Tree
main :: IO ()
main = do
let root x = case x of
     'a' -> (x,[x,'b'])
     'b' -> (x,[x,'c'])
     'c' -> (x,[x,'a'])
let a = unfoldTree root 'a'
putStrLn (take 900 (show a)
  ++ " ... (and so on)")
Source Own work
Author Ondřej Pavlata

Licensing

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:36, 2 January 2022Thumbnail for version as of 17:36, 2 January 2022512 × 438 (4 KB)Hundblue{{Information |Description=Non-well-founded rose tree according to Haskell Data.Tree module |Source=Own work |Date= |Author=Ondřej Pavlata |Permission= |other_versions= }}

The following page uses this file:

Metadata