X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fsrc-isv%2FLists.mediawiki;h=fd4b29b1248eb9af5081fa2b48af971472279e56;hb=1d887773b04e7fa984a2c3da4699faea17f9c872;hp=2869a23a793721802cb4ea1de04090f9ae3d13f3;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.runtime/src-isv/Lists.mediawiki b/bundles/org.simantics.scl.runtime/src-isv/Lists.mediawiki index 2869a23a7..fd4b29b12 100644 --- a/bundles/org.simantics.scl.runtime/src-isv/Lists.mediawiki +++ b/bundles/org.simantics.scl.runtime/src-isv/Lists.mediawiki @@ -1,19 +1,19 @@ -== Working with lists == - - - -Note that some of these functions work also for other -data structures than lists. -
-! -+ -foldl -foldl1 -map f l = [f x | x <- l] -filter p l = [x | x <- l, p x] -sum l = [y | x <- l, y <- x] -join l = sum l -concatMap f l = [y | x <- l, y <- f x] -zip l m = [(x,y) | x <- l | y <- m] -zipWith f l m = [f x y | x <- l | y <- m] +== Working with lists == + + + +Note that some of these functions work also for other +data structures than lists. ++! ++ +foldl +foldl1 +map f l = [f x | x <- l] +filter p l = [x | x <- l, p x] +sum l = [y | x <- l, y <- x] +join l = sum l +concatMap f l = [y | x <- l, y <- f x] +zip l m = [(x,y) | x <- l | y <- m] +zipWith f l m = [f x y | x <- l | y <- m]\ No newline at end of file